fader: restore right-click focusing the input in compact mode (mouse only) (#321)

This commit is contained in:
jean-emmanuel 2018-06-28 09:47:21 +02:00
parent b3e8839ee3
commit 753f441733
2 changed files with 9 additions and 0 deletions

View file

@ -4,6 +4,7 @@
- widgets
- **new** generic `matrix` widget
- fader: restore right-click focusing the input in compact mode (mouse only)
## 0.32.6

View file

@ -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')) {