drag: clean insepector-fake-touchevent test
This commit is contained in:
parent
965423fbc8
commit
f0417188da
1 changed files with 2 additions and 2 deletions
|
|
@ -43,7 +43,7 @@
|
|||
mouseStartHandler = function(e){
|
||||
|
||||
// ignore mouse event when fired by a simulated touch event
|
||||
if (e.originalEvent.sourceCapabilities.firesTouchEvents || e.button == 2) return
|
||||
if ((e.originalEvent.sourceCapabilities && e.originalEvent.sourceCapabilities.firesTouchEvents) || e.button == 2) return
|
||||
|
||||
isPointerDown = true
|
||||
target = $this
|
||||
|
|
@ -84,7 +84,7 @@
|
|||
e.stopPropagation()
|
||||
|
||||
// ignore mouse event when fired by a simulated touch event
|
||||
if (e.originalEvent.sourceCapabilities.firesTouchEvents) return
|
||||
if (e.originalEvent.sourceCapabilities && e.originalEvent.sourceCapabilities.firesTouchEvents) return
|
||||
|
||||
e.speedX = e.pageX - previousEvent.pageX
|
||||
e.speedY = e.pageY - previousEvent.pageY
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue