multixy/range: simultaneous touch releases not working correctly when spring is set and feedback values are received shortly after being sent

This commit is contained in:
jean-emmanuel 2025-03-17 18:22:48 +01:00
parent 6310a6171e
commit 911c318cc1
2 changed files with 3 additions and 1 deletions

View file

@ -6,6 +6,7 @@
- broken cli when `ELECTRON_RUN_AS_NODE` is set
- inspector: input bug when a code editor was focused using the tab key
- inspector: prevent editing non-editable widgets (e.g matrix items) when clicking on their ids in error logs
- multixy/range: simultaneous touch releases not working correctly when `spring` is set and feedback values are received shortly after being sent
- widgets
- fader: add `touchZone` property to allow restricting interaction to a part of the widget

View file

@ -14,13 +14,14 @@ module.exports = (self, options)=>{
self.on('dragend', (e)=>{
if (self.touched == 1) {
self.touched = 0
if (self.setValueTouchedQueue !== undefined) {
self.setValue(...self.setValueTouchedQueue)
self.setValueTouchedQueue = undefined
}
self.touched = 0
self.trigger('touch', {stopPropagation: true, touch: 0})
} else if (self.touched > 1){