multipad/range: errors when dragging over when the gesture was initiated on a traversing widget (ie matrix)
This commit is contained in:
parent
0523c19b2a
commit
2144f9deec
3 changed files with 11 additions and 0 deletions
|
|
@ -138,6 +138,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})
|
||||
|
|
@ -146,6 +148,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)
|
||||
|
|
|
|||
|
|
@ -329,6 +329,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)
|
||||
|
|
@ -341,6 +344,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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue