fader: take user scripts into account when filtering feedback while touched
This commit is contained in:
parent
9343258464
commit
1cc3dac24c
1 changed files with 6 additions and 1 deletions
|
|
@ -226,7 +226,12 @@ class Slider extends Canvas {
|
|||
setValue(v,options={}) {
|
||||
|
||||
if (typeof v != 'number') return
|
||||
if (this.touched && !options.dragged && !options.doubleTap) return this.setValueTouchedQueue = [v, options]
|
||||
if (
|
||||
this.touched &&
|
||||
!options.dragged &&
|
||||
!options.doubleTap &&
|
||||
options.fromScript !== this.hash
|
||||
) return this.setValueTouchedQueue = [v, options]
|
||||
|
||||
var value = clip(v,[this.rangeValsMin,this.rangeValsMax])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue