Make touchstart/touchmove events passive

This commit is contained in:
djmaze 2020-10-13 15:16:57 +02:00
parent cc046907ed
commit e02deee4f1
2 changed files with 3 additions and 3 deletions

View file

@ -2567,7 +2567,7 @@ proto.addEventListener = function ( type, fn ) {
if ( type === 'selectionchange' ) {
target = doc;
}
target.addEventListener( type, this, true );
target.addEventListener( type, this, {capture:true,passive:'touchstart'===type} );
}
}
handlers.push( fn );