Merge branch 'master' of github.com:jean-emmanuel/open-stage-control
This commit is contained in:
commit
1ad81075e8
3 changed files with 12 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue