knob/fader: right click / long touch triggers value input focus
This commit is contained in:
parent
f0d7e83e92
commit
7dc078cbd4
4 changed files with 33 additions and 1 deletions
|
|
@ -1849,6 +1849,14 @@ module.exports.create = function(widgetData,container) {
|
|||
widget.updateUi(gauge.size)
|
||||
})
|
||||
|
||||
wrapper.on('mousedown',function(e){
|
||||
if (e.button==2 && !EDITING) {
|
||||
e.stopPropagation()
|
||||
e.preventDefault()
|
||||
input.focus()
|
||||
}
|
||||
})
|
||||
|
||||
wrapper.on('mousewheel',function(e){
|
||||
if (e.originalEvent.wheelDeltaX) return
|
||||
|
||||
|
|
@ -2097,6 +2105,14 @@ module.exports.create = function(widgetData,container) {
|
|||
mask[0].setAttribute('style',`height:${w}px;width:${w}px;padding-bottom:0`)
|
||||
})
|
||||
|
||||
wrapper.on('mousedown',function(e){
|
||||
if (e.button==2 && !EDITING) {
|
||||
e.stopPropagation()
|
||||
e.preventDefault()
|
||||
input.focus()
|
||||
}
|
||||
})
|
||||
|
||||
wrapper.on('mousewheel',function(e){
|
||||
if (e.originalEvent.wheelDeltaX) return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue