diff --git a/dev/External/SquireUI.js b/dev/External/SquireUI.js index 5ed42c655..1db881805 100644 --- a/dev/External/SquireUI.js +++ b/dev/External/SquireUI.js @@ -410,8 +410,8 @@ class SquireUI input.type = 'button'; input.innerHTML = cfg.html; input.action_cmd = cfg.cmd; - input.addEventListener('touchstart', () => touchTap = input); - input.addEventListener('touchmove', () => touchTap = null); + input.addEventListener('touchstart', () => touchTap = input, {passive:true}); + input.addEventListener('touchmove', () => touchTap = null, {passive:true}); input.addEventListener('touchcancel', () => touchTap = null); input.addEventListener('touchend', e => { if (touchTap === input) { diff --git a/vendors/squire/build/squire-raw.js b/vendors/squire/build/squire-raw.js index 761f735af..7f509e19a 100644 --- a/vendors/squire/build/squire-raw.js +++ b/vendors/squire/build/squire-raw.js @@ -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 );