touch state: typo (-> extra touch state events in range/multixy)
This commit is contained in:
parent
b1a32f1d80
commit
948c778c1a
1 changed files with 3 additions and 3 deletions
|
|
@ -6,7 +6,7 @@ module.exports = (self, options)=>{
|
|||
self.on('draginit',(e)=>{
|
||||
self.touched += 1
|
||||
if (self.touched == 1) {
|
||||
self.trigger('touch', {stopPropagation :0, touch: 1})
|
||||
self.trigger('touch', {stopPropagation: true, touch: 1})
|
||||
}
|
||||
}, options)
|
||||
|
||||
|
|
@ -19,7 +19,7 @@ module.exports = (self, options)=>{
|
|||
self.setValueTouchedQueue = undefined
|
||||
}
|
||||
|
||||
self.trigger('touch', {stopPropagation :true, touch: 0})
|
||||
self.trigger('touch', {stopPropagation: true, touch: 0})
|
||||
|
||||
} else if (self.touched > 1){
|
||||
self.touched -= 1
|
||||
|
|
@ -28,7 +28,7 @@ module.exports = (self, options)=>{
|
|||
|
||||
self.onRemove = ()=>{
|
||||
if (self.touched > 0) {
|
||||
self.trigger('touch', {stopPropagation :true, touch: 0})
|
||||
self.trigger('touch', {stopPropagation: true, touch: 0})
|
||||
}
|
||||
self.__proto__.onRemove.call(self)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue