fader: take user scripts into account when filtering feedback while touched

This commit is contained in:
jean-emmanuel 2025-03-19 09:47:52 +01:00
parent 9343258464
commit 1cc3dac24c

View file

@ -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])