fader: fix touch state regression
This commit is contained in:
parent
315f1de6c9
commit
8a5790f2f5
1 changed files with 4 additions and 0 deletions
|
|
@ -6,6 +6,10 @@ module.exports = (self, options)=>{
|
|||
self.setValueTouchedQueue = undefined
|
||||
|
||||
self.on('draginit',(e)=>{
|
||||
if (self.shouldDrag && !self.shouldDrag(e)) {
|
||||
e.cancelDragEvent = true
|
||||
return
|
||||
}
|
||||
self.touched += 1
|
||||
if (self.touched == 1) {
|
||||
self.trigger('touch', {stopPropagation: true, touch: 1})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue