keyboard: regression (1.27.5) breaking velocity property

This commit is contained in:
jean-emmanuel 2025-05-16 16:00:05 +02:00
parent 296ba343c4
commit e7ffec8c03
2 changed files with 9 additions and 3 deletions

View file

@ -99,7 +99,7 @@ class Button extends Widget {
this.parsersLocalScope.touchCoords = [e.offsetX / this.buttonSize[0], 1 - e.offsetY / this.buttonSize[1]]
}
this.setValue(this.getProp('on'), {sync: true, send: true, local:true})
this.setValue(this.getProp('on'), {sync: true, send: true, local:true, y: e.offsetY})
if (tap) this.container.classList.add('active')
@ -117,7 +117,7 @@ class Button extends Widget {
this.parsersLocalScope.touchCoords = [e.offsetX / this.buttonSize[0], 1 - e.offsetY / this.buttonSize[1]]
}
this.setValue(this.getProp('on'), {sync: true, send: true, local:true})
this.setValue(this.getProp('on'), {sync: true, send: true, local:true, y: e.offsetY})
if (tap) this.container.classList.add('active')