@@ -350,16 +350,18 @@ function initTouch() {
350
350
351
351
352
352
const passiveListener = Support . passiveListener ? { passive : true } : false ;
353
+ const passiveListenerCapture = Support . passiveListener ? { passive : true , capture : true } : true ;
353
354
const activeListener = Support . passiveListener ? { passive : false } : false ;
355
+ const activeListenerCapture = Support . passiveListener ? { passive : false , capture : true } : true ;
354
356
355
357
document . addEventListener ( 'click' , appClick , true ) ;
356
358
357
359
if ( Support . passiveListener ) {
358
- document . addEventListener ( app . touchEvents . start , appTouchStartActive , activeListener ) ;
360
+ document . addEventListener ( app . touchEvents . start , appTouchStartActive , activeListenerCapture ) ;
359
361
document . addEventListener ( app . touchEvents . move , appTouchMoveActive , activeListener ) ;
360
362
document . addEventListener ( app . touchEvents . end , appTouchEndActive , activeListener ) ;
361
363
362
- document . addEventListener ( app . touchEvents . start , appTouchStartPassive , passiveListener ) ;
364
+ document . addEventListener ( app . touchEvents . start , appTouchStartPassive , passiveListenerCapture ) ;
363
365
document . addEventListener ( app . touchEvents . move , appTouchMovePassive , passiveListener ) ;
364
366
document . addEventListener ( app . touchEvents . end , appTouchEndPassive , passiveListener ) ;
365
367
if ( Support . touch && Support . gestures ) {
@@ -375,7 +377,7 @@ function initTouch() {
375
377
document . addEventListener ( app . touchEvents . start , ( e ) => {
376
378
appTouchStartActive ( e ) ;
377
379
appTouchStartPassive ( e ) ;
378
- } , false ) ;
380
+ } , true ) ;
379
381
document . addEventListener ( app . touchEvents . move , ( e ) => {
380
382
appTouchMoveActive ( e ) ;
381
383
appTouchMovePassive ( e ) ;
0 commit comments