From 73231ec5d40cd4b73f2f5dcfb031014738555bcf Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Thu, 13 Jan 2022 13:16:24 +0100 Subject: [PATCH] scripting: fix legacy touch state --- src/client/widgets/common/widget.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/client/widgets/common/widget.js b/src/client/widgets/common/widget.js index b3da97ce..e989624c 100644 --- a/src/client/widgets/common/widget.js +++ b/src/client/widgets/common/widget.js @@ -239,14 +239,13 @@ class Widget extends EventEmitter { widget: this, property: 'onValue', code: this.getProp('onValue'), - context: {value: 0, id: '', touch: 0} + context: {value: 0, id: '', touch: undefined} }) this.on('change', (e)=>{ if (e.widget === this && this.mounted && !e.options.fromEdit && e.options.script !== false) { this.scripts.onValue.run({ value: e.options.widget ? e.options.widget.value : this.value, - id: e.options.id || e.id, - touch: undefined + id: e.options.id || e.id }, e.options) } })