script: prevent infinite loop issue
This commit is contained in:
parent
c916f5dd6a
commit
e43c6fea22
2 changed files with 3 additions and 3 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue