drag: don't preventdefault touchstart to let click event happen when traversing = true
This commit is contained in:
parent
dc98f3ec54
commit
9d6c70009c
2 changed files with 4 additions and 3 deletions
|
|
@ -160,11 +160,11 @@ module.exports = {
|
|||
|
||||
traversingDisable: function(){
|
||||
$('.traversingEnable, .traversingDisable').toggleClass('on')
|
||||
$(document).trigger('disableTraversingGestures')
|
||||
$('#container').trigger('disableTraversingGestures')
|
||||
},
|
||||
traversingEnable: function(){
|
||||
$('.traversingEnable, .traversingDisable').toggleClass('on')
|
||||
$(document).enableTraversingGestures()
|
||||
$('#container').enableTraversingGestures()
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@
|
|||
|
||||
var self = this,
|
||||
touchStartHandler = function(e){
|
||||
e.preventDefault()
|
||||
// e.preventDefault()
|
||||
|
||||
var oE = e.originalEvent
|
||||
|
||||
|
|
@ -296,6 +296,7 @@
|
|||
|
||||
this.on('disableTraversingGestures',()=>{
|
||||
this.off('draginit.traversing')
|
||||
this.off('disableTraversingGestures')
|
||||
self.removeEventListener("mousedown", down, true)
|
||||
self.removeEventListener("touchstart", down, true)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue