sliders: disable mousewheel when spring is enabled
encoder: remove `spring` property
This commit is contained in:
parent
e8822d36e9
commit
33c20934bc
3 changed files with 7 additions and 1 deletions
|
|
@ -4,6 +4,11 @@
|
|||
|
||||
- bug fixes
|
||||
- switch: widget not reacting at first touch when traversing is enabled on parent
|
||||
- sliders: disable mousewheel when `spring` is enabled
|
||||
|
||||
- widgets
|
||||
- script: add `once` event mode
|
||||
- encoder: remove `spring` property
|
||||
|
||||
- custom module
|
||||
- expose `process` global
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ module.exports = class Encoder extends StaticProperties(Knob, {angle: 360, range
|
|||
class_specific: {
|
||||
origin: null,
|
||||
steps: null,
|
||||
spring: null,
|
||||
ticks: {type: 'number', value: '', help: 'Defines the granularity / verbosity of the encoder (number of step for a 360° arc)'},
|
||||
sensitivity: {type: 'number', value: 1, help: 'When set between 0 and 1, reduces the encoder\'s verbosity'},
|
||||
back: {type: '*', value: -1, help: 'Defines which value is sent when rotating the encoder anticlockwise'},
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ class Slider extends Canvas {
|
|||
|
||||
mousewheelHandle(e) {
|
||||
|
||||
if (e.deltaX) return
|
||||
if (e.deltaX || this.getProp('spring')) return
|
||||
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue