Disable longPress contextmenu emulation on msTouch, it natively fires its own contextmenu event after a longpress is released.

This commit is contained in:
danzel 2012-10-31 13:26:56 +13:00
parent 081edc283e
commit edaa1bbcec

View File

@ -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 () {