fader: restore right-click focusing the input in compact mode (mouse only) (#321)
This commit is contained in:
parent
0a5af41375
commit
caa1b1d066
2 changed files with 9 additions and 0 deletions
|
|
@ -74,6 +74,14 @@ module.exports = class Fader extends Slider {
|
|||
if (this.getProp('compact')) {
|
||||
this.widget.classList.add('compact')
|
||||
this.margin = 0
|
||||
if (this.getProp('input')) {
|
||||
this.widget.addEventListener('fast-right-click', (e)=>{
|
||||
if (e.detail.button == 2 && !EDITING) {
|
||||
// Mouse only
|
||||
this.input.focus()
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
if (this.getProp('alignRight') && !this.getProp('horizontal')) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue