diff --git a/ui/src/components/btn/QBtn.js b/ui/src/components/btn/QBtn.js index d9b5d13adc5..6760ae6024b 100644 --- a/ui/src/components/btn/QBtn.js +++ b/ui/src/components/btn/QBtn.js @@ -69,7 +69,7 @@ export default Vue.extend({ } if (this.$q.platform.has.touch === true) { - on.touchstart = this.__onTouchstart + on[ `${on.touchstart === void 0 ? '&' : ''}touchstart` ] = this.__onTouchstart } return on diff --git a/ui/src/directives/TouchHold.js b/ui/src/directives/TouchHold.js index 47afe067549..4a045792b98 100644 --- a/ui/src/directives/TouchHold.js +++ b/ui/src/directives/TouchHold.js @@ -145,7 +145,7 @@ export default { client.has.touch === true && addEvt(ctx, 'main', [ [ el, 'touchstart', 'touchStart', `passive${modifiers.capture === true ? 'Capture' : ''}` ], - [ el, 'touchend', 'noop', 'notPassiveCapture' ] + [ el, 'touchend', 'noop', 'passiveCapture' ] ]) }, diff --git a/ui/src/directives/TouchPan.js b/ui/src/directives/TouchPan.js index 07825c4e2cf..742fb347e77 100644 --- a/ui/src/directives/TouchPan.js +++ b/ui/src/directives/TouchPan.js @@ -392,7 +392,7 @@ export default { client.has.touch === true && addEvt(ctx, 'main', [ [ el, 'touchstart', 'touchStart', `passive${modifiers.capture === true ? 'Capture' : ''}` ], - [ el, 'touchmove', 'noop', 'notPassiveCapture' ] + [ el, 'touchmove', 'noop', 'notPassiveCapture' ] // cannot be passive (ex: iOS scroll) ]) }, diff --git a/ui/src/directives/TouchRepeat.js b/ui/src/directives/TouchRepeat.js index 090076cde65..4c8ec51a077 100644 --- a/ui/src/directives/TouchRepeat.js +++ b/ui/src/directives/TouchRepeat.js @@ -223,7 +223,7 @@ export default { client.has.touch === true && addEvt(ctx, 'main', [ [ el, 'touchstart', 'touchStart', `passive${modifiers.capture === true ? 'Capture' : ''}` ], - [ el, 'touchend', 'noop', 'notPassiveCapture' ] + [ el, 'touchend', 'noop', 'passiveCapture' ] ]) keyboard.length > 0 && addEvt(ctx, 'main', [ diff --git a/ui/src/directives/TouchSwipe.js b/ui/src/directives/TouchSwipe.js index 817d33da6f2..4f4e1980529 100644 --- a/ui/src/directives/TouchSwipe.js +++ b/ui/src/directives/TouchSwipe.js @@ -250,7 +250,7 @@ export default { client.has.touch === true && addEvt(ctx, 'main', [ [ el, 'touchstart', 'touchStart', `passive${modifiers.capture === true ? 'Capture' : ''}` ], - [ el, 'touchmove', 'noop', 'notPassiveCapture' ] + [ el, 'touchmove', 'noop', 'notPassiveCapture' ] // cannot be passive (ex: iOS scroll) ]) },