diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f6af479..261d4324 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,6 @@ - broken cli when `ELECTRON_RUN_AS_NODE` is set - inspector: input bug when a code editor was focused using the tab key - inspector: prevent editing non-editable widgets (e.g matrix items) when clicking on their ids in error logs - - multixy/range: simultaneous touch releases not working correctly when `spring` is set and feedback values are received shortly after being sent - widgets - fader: add `touchZone` property to allow restricting interaction to a part of the widget diff --git a/src/client/widgets/mixins/touch_state.js b/src/client/widgets/mixins/touch_state.js index 499afeae..e2a83b98 100644 --- a/src/client/widgets/mixins/touch_state.js +++ b/src/client/widgets/mixins/touch_state.js @@ -18,14 +18,13 @@ module.exports = (self, options)=>{ self.on('dragend', (e)=>{ if (self.touched == 1) { + self.touched = 0 if (self.setValueTouchedQueue !== undefined) { self.setValue(...self.setValueTouchedQueue) self.setValueTouchedQueue = undefined } - self.touched = 0 - self.trigger('touch', {stopPropagation: true, touch: 0}) } else if (self.touched > 1){