button: hand push+decoupled scripting issue in script-vm directly
This commit is contained in:
parent
6498e0c6f6
commit
95097d549e
2 changed files with 2 additions and 1 deletions
|
|
@ -278,7 +278,7 @@ class Button extends Widget {
|
|||
if (options.fromExternal) {
|
||||
this.state = newstate
|
||||
this.decoupledValue.setValue(newstate, {sync: true})
|
||||
} else if ((!options.local || options.fromScript) && this.getProp('mode') === 'push') {
|
||||
} else if (!options.local && this.getProp('mode') === 'push') {
|
||||
if (newstate === 1 && !this.touchActive) {
|
||||
this.touchActive = 1
|
||||
setTimeout(()=>{this.touchActive = 0})
|
||||
|
|
|
|||
|
|
@ -80,6 +80,7 @@ class ScriptVm extends Vm {
|
|||
options.fromScript = widget.hash
|
||||
|
||||
if (options.dragged) options.dragged = false
|
||||
if (options.local) options.local = false
|
||||
|
||||
// if (id === options.id) options.sync = false // loop stop
|
||||
// if (this.getWidget() === options.widget) options.sync = false // loop stop
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue