From 948c778c1ab9918d4f10eea0f6b7448f5c525690 Mon Sep 17 00:00:00 2001 From: bordun Date: Thu, 1 Oct 2020 23:34:38 +0200 Subject: [PATCH] touch state: typo (-> extra touch state events in range/multixy) --- src/client/widgets/mixins/touch_state.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/widgets/mixins/touch_state.js b/src/client/widgets/mixins/touch_state.js index 991810a1..7a9192b5 100644 --- a/src/client/widgets/mixins/touch_state.js +++ b/src/client/widgets/mixins/touch_state.js @@ -6,7 +6,7 @@ module.exports = (self, options)=>{ self.on('draginit',(e)=>{ self.touched += 1 if (self.touched == 1) { - self.trigger('touch', {stopPropagation :0, touch: 1}) + self.trigger('touch', {stopPropagation: true, touch: 1}) } }, options) @@ -19,7 +19,7 @@ module.exports = (self, options)=>{ self.setValueTouchedQueue = undefined } - self.trigger('touch', {stopPropagation :true, touch: 0}) + self.trigger('touch', {stopPropagation: true, touch: 0}) } else if (self.touched > 1){ self.touched -= 1 @@ -28,7 +28,7 @@ module.exports = (self, options)=>{ self.onRemove = ()=>{ if (self.touched > 0) { - self.trigger('touch', {stopPropagation :true, touch: 0}) + self.trigger('touch', {stopPropagation: true, touch: 0}) } self.__proto__.onRemove.call(self) }