widgets: touch state scripts not triggering some synchronization mechanism

This commit is contained in:
bordun 2020-10-05 18:00:45 +02:00
parent 30c5784658
commit 7b29071a06
2 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,10 @@
# Changelog
## 1.5.1
- bug fixes
- widgets: touch state scripts not triggering some synchronization mechanism
## 1.5.0
- bug fixes

View file

@ -207,7 +207,7 @@ class Widget extends EventEmitter {
})
if (String(this.getProp('script')).includes('touch')) {
this.on('touch', (e)=>{
this.script.setValue(this.value, {id: this.getProp('id'), touch: e.touch, sync: false, send: true})
this.script.setValue(this.value, {id: this.getProp('id'), touch: e.touch, sync: true, send: true})
})
}
}