Disable longPress contextmenu emulation on msTouch, it natively fires its own contextmenu event after a longpress is released.
This commit is contained in:
parent
081edc283e
commit
edaa1bbcec
@ -15,7 +15,7 @@ L.Draggable = L.Class.extend({
|
||||
initialize: function (element, dragStartTarget, longPress) {
|
||||
this._element = element;
|
||||
this._dragStartTarget = dragStartTarget || element;
|
||||
this._longPress = longPress;
|
||||
this._longPress = longPress && !L.Browser.msTouch;
|
||||
},
|
||||
|
||||
enable: function () {
|
||||
|
Loading…
Reference in New Issue
Block a user