script: prevent infinite loop issue

This commit is contained in:
jean-emmanuel 2022-10-28 21:56:27 +02:00
parent c916f5dd6a
commit e43c6fea22
2 changed files with 3 additions and 3 deletions

View file

@ -218,7 +218,7 @@ module.exports = class MultiXy extends Pad {
this.pads[k].height = this.height
this.pads[k].padPadding = this.padPadding
}
this.updateHandlesPosition()
@ -297,7 +297,7 @@ module.exports = class MultiXy extends Pad {
this.touched &&
!options.dragged &&
!options.doubleTap &&
options.fromScript !== this
options.fromScript !== this.hash
) return this.setValueTouchedQueue = [v, options]
for (let i=0;i<this.npoints;i++) {

View file

@ -70,7 +70,7 @@ class ScriptVm extends Vm {
var widget = this.getWidget()
var options = deepCopy(this.getValueOptions())
options.fromScript = widget
options.fromScript = widget.hash
if (options.dragged) options.dragged = false