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:
parent
6310a6171e
commit
911c318cc1
2 changed files with 3 additions and 1 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue