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

This reverts commit 911c318cc1.
This commit is contained in:
jean-emmanuel 2025-03-19 11:21:48 +01:00
parent 2802b3955a
commit 29bcc5fe66
2 changed files with 1 additions and 3 deletions

View file

@ -18,14 +18,13 @@ 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){