diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ea8c0e1..5dc5eeb4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ - editor: incorrect position when moving a widget from an edge with the keyboard - modal: prevent touchend event from reaching the inner widgets when opening the container - matrix: clone matrices not properly storing their children's values + - multipad/range: errors when dragging over when the gesture was initiated on a traversing widget (ie matrix) + - widgets - **new** html widget - frames: allow loading local html files without requiring a web server to serve them diff --git a/src/client/app/widgets/pads/multixy.js b/src/client/app/widgets/pads/multixy.js index 938daac0..fd8d6fcc 100644 --- a/src/client/app/widgets/pads/multixy.js +++ b/src/client/app/widgets/pads/multixy.js @@ -140,6 +140,8 @@ module.exports = class MultiXy extends Pad { var i = this.touchMap[e.pointerId] + if (!i) return + this.pads[i].trigger('drag', e) }, {element: this.wrapper[0], multitouch: true}) @@ -148,6 +150,8 @@ module.exports = class MultiXy extends Pad { var i = this.touchMap[e.pointerId] + if (!i) return + e.stopPropagation = true this.pads[i].trigger('dragend', e) diff --git a/src/client/app/widgets/sliders/range.js b/src/client/app/widgets/sliders/range.js index 95834e06..03beb588 100644 --- a/src/client/app/widgets/sliders/range.js +++ b/src/client/app/widgets/sliders/range.js @@ -332,6 +332,9 @@ class Range extends Widget { this.on('drag',(e)=>{ var i = this.touchMap[e.pointerId] + + if (!i) return + if (e.shiftKey) { this.faders[0].trigger('drag', e) this.faders[1].trigger('drag', e) @@ -344,6 +347,9 @@ class Range extends Widget { this.on('dragend',(e)=>{ var i = this.touchMap[e.pointerId] + + if (!i) return + e.stopPropagation = true this.faders[i].trigger('dragend', e) delete this.touchMap[e.pointerId]