File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -192,21 +192,21 @@ function createCamera(element, options) {
192
192
handleInteraction ( 1 , xy [ 0 ] , xy [ 1 ] , camera . _lastMods )
193
193
194
194
ev . preventDefault ( )
195
- } , hasPassive ? { passive : false } : false )
195
+ } , hasPassive ? { passive : true } : false )
196
196
197
197
element . addEventListener ( 'touchmove' , function ( ev ) {
198
198
var xy = mouseOffset ( ev . changedTouches [ 0 ] , element )
199
199
handleInteraction ( 1 , xy [ 0 ] , xy [ 1 ] , camera . _lastMods )
200
200
201
201
ev . preventDefault ( )
202
- } , hasPassive ? { passive : false } : false )
202
+ } , hasPassive ? { passive : true } : false )
203
203
204
204
element . addEventListener ( 'touchend' , function ( ev ) {
205
205
206
206
handleInteraction ( 0 , camera . _lastX , camera . _lastY , camera . _lastMods )
207
207
208
208
ev . preventDefault ( )
209
- } , hasPassive ? { passive : false } : false )
209
+ } , hasPassive ? { passive : true } : false )
210
210
211
211
function handleInteraction ( buttons , x , y , mods ) {
212
212
var keyBindingMode = camera . keyBindingMode
You can’t perform that action at this time.
0 commit comments