events: prevent mouse's right click from firing drag event
This commit is contained in:
parent
2407e37922
commit
e1a1c9bf98
2 changed files with 2 additions and 2 deletions
|
|
@ -4712,7 +4712,7 @@ require('./app')
|
|||
mouseStartHandler = function(e){
|
||||
|
||||
// ignore mouse event when fired by a simulated touch event
|
||||
if (e.originalEvent.sourceCapabilities.firesTouchEvents) return
|
||||
if (e.originalEvent.sourceCapabilities.firesTouchEvents || e.button == 2) return
|
||||
|
||||
isPointerDown = true
|
||||
target = $this
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@
|
|||
mouseStartHandler = function(e){
|
||||
|
||||
// ignore mouse event when fired by a simulated touch event
|
||||
if (e.originalEvent.sourceCapabilities.firesTouchEvents) return
|
||||
if (e.originalEvent.sourceCapabilities.firesTouchEvents || e.button == 2) return
|
||||
|
||||
isPointerDown = true
|
||||
target = $this
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue