From 09812748d374882b20493a648fe347caa41a93c4 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Mon, 24 Jan 2022 11:24:59 +0100 Subject: [PATCH] button: `locals.touchCoords` not updated since v1.14.0 --- CHANGELOG.md | 3 ++- src/client/widgets/basics/button.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a9327e8..d3cd53f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,9 +5,10 @@ - bug fixes - osc receivers (`OSC{}` syntax) now apply the same rule as widgets regarding midi messages (only receive if the message's origin matches one of the host widget's midi targets) - modal: rendering issue on iOS + - button: `locals.touchCoords` not updated since v1.14.0 - widgets - - clone/fragment: remove scripting properties as theyr are supposed to bo overriden in `props` + - clone/fragment: remove scripting properties as they are supposed to bo overriden in `props` ## 1.14.2 diff --git a/src/client/widgets/basics/button.js b/src/client/widgets/basics/button.js index 8f543f4f..63c65cb5 100644 --- a/src/client/widgets/basics/button.js +++ b/src/client/widgets/basics/button.js @@ -64,7 +64,7 @@ class Button extends Widget { this.pulse = null this.buttonSize = [100, 100] - this.exposeTouchCoords = String(this.getProp('script')).includes('touchCoords') + this.exposeTouchCoords = String(this.getProp('onValue')).includes('touchCoords') this.parsersLocalScope.touchCoords = [0.5, 0.5] if (this.exposeTouchCoords) { this.on('resize', (e)=>{