range: allow moving the range (both handles) with shift key pressed (issue #114)
This commit is contained in:
parent
3d2b2e0586
commit
fac6992cd5
2 changed files with 7 additions and 2 deletions
|
|
@ -339,7 +339,12 @@ module.exports = class Range extends _widgets_base {
|
|||
this.on('drag',(e)=>{
|
||||
|
||||
var i = this.touchMap[e.pointerId]
|
||||
this.faders[i].trigger('drag', [e])
|
||||
if (e.shiftKey) {
|
||||
this.faders[0].trigger('drag', [e])
|
||||
this.faders[1].trigger('drag', [e])
|
||||
} else {
|
||||
this.faders[i].trigger('drag', [e])
|
||||
}
|
||||
|
||||
}, {element: this.wrapper, multitouch: true})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue