button: locals.touchCoords not updated since v1.14.0

This commit is contained in:
jean-emmanuel 2022-01-24 11:24:59 +01:00
parent 6eeeffee99
commit 09812748d3
2 changed files with 3 additions and 2 deletions

View file

@ -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)=>{