@raruto/leaflet-gesture-handling
Advanced tools
Comparing version 1.4.2 to 1.4.3
@@ -95,12 +95,26 @@ (function (global, factory) { | ||
_disableInteraction: function(name) { | ||
// disable the handler only if related option is true | ||
if (this._map.options[name] && this._map[name]) { | ||
this._map[name].disable(); | ||
} | ||
}, | ||
_enableInteraction: function(name) { | ||
// enable the handler only if related option is true | ||
if (this._map.options[name] && this._map[name]) { | ||
this._map[name].enable(); | ||
} | ||
}, | ||
_disableInteractions: function() { | ||
this._map.dragging.disable(); | ||
this._map.scrollWheelZoom.disable(); | ||
if (this._map.tap) this._map.tap.disable(); | ||
this._disableInteraction('dragging'); | ||
this._disableInteraction('scrollWheelZoom'); | ||
this._disableInteraction('tap'); | ||
}, | ||
_enableInteractions: function() { | ||
this._map.dragging.enable(); | ||
this._map.scrollWheelZoom.enable(); | ||
if (this._map.tap) this._map.tap.enable(); | ||
this._enableInteraction('dragging'); | ||
this._enableInteraction('scrollWheelZoom'); | ||
this._enableInteraction('tap'); | ||
}, | ||
@@ -223,3 +237,3 @@ | ||
this._enableWarning('scroll'); | ||
this._map.scrollWheelZoom.disable(); | ||
this._disableInteraction('scrollWheelZoom'); | ||
}, | ||
@@ -234,3 +248,3 @@ | ||
this._disableWarning('scroll'); | ||
this._map.scrollWheelZoom.enable(); | ||
this._enableInteraction('scrollWheelZoom'); | ||
}, this), | ||
@@ -242,8 +256,10 @@ delay || 0 | ||
_handleScroll: function(e) { | ||
if (e.metaKey || e.ctrlKey || (e.shiftKey && this._map._rotate)) { | ||
e.preventDefault(); | ||
this._disableScrollWarning(); | ||
} else { | ||
this._enableScrollWarning(); | ||
this._disableScrollWarning(this._map.options.gestureHandlingOptions.duration); | ||
if (this._map.scrollWheelZoom && this._map.scrollWheelZoom.enabled()) { | ||
if (e.metaKey || e.ctrlKey || (e.shiftKey && this._map._rotate)) { | ||
e.preventDefault(); | ||
this._disableScrollWarning(); | ||
} else { | ||
this._enableScrollWarning(); | ||
this._disableScrollWarning(this._map.options.gestureHandlingOptions.duration); | ||
} | ||
} | ||
@@ -250,0 +266,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self)["leaflet-gesture-handling"]={})}(this,(function(e){"use strict";var t={touch:"Use two fingers to move the map",scroll:"Use ctrl + scroll to zoom the map",scrollMac:"Use ⌘ + scroll to zoom the map"};const n=(document.currentScript&&document.currentScript.src||{url:"undefined"==typeof document?new(require("url").URL)("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("leaflet-gesture-handling.min.js",document.baseURI).href}&&("undefined"==typeof document?new(require("url").URL)("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("leaflet-gesture-handling.min.js",document.baseURI).href)).split("/").slice(0,-1).join("/")+"/";var i=!1,s={text:{},duration:1700},a=L.Handler.extend({_isScrolling:!1,_isTouching:!1,_isFading:!1,addHooks:function(){this._handleTouch=L.bind(this._handleTouch,this),this._setGestureHandlingOptions(),this._disableInteractions(),this._map._container.addEventListener("touchstart",this._handleTouch),this._map._container.addEventListener("touchmove",this._handleTouch),this._map._container.addEventListener("touchend",this._handleTouch),this._map._container.addEventListener("touchcancel",this._handleTouch),this._map._container.addEventListener("click",this._handleTouch),L.DomEvent.on(this._map._container,"wheel",this._handleScroll,this),L.DomEvent.on(this._map._container,"mouseenter",this._handleMouseOver,this),L.DomEvent.on(this._map._container,"mouseleave",this._handleMouseOut,this),L.DomEvent.on(this._map,"movestart",this._handleDragging,this),L.DomEvent.on(this._map,"move",this._handleDragging,this),L.DomEvent.on(this._map,"moveend",this._handleDragging,this),this._map.on("popupopen",this._handleScrollOnPopup,this),this._map.on("popupclose",this._handleScrollOnPopup,this),L.DomEvent.off(this._map,"enterFullscreen",this._onEnterFullscreen,this),L.DomEvent.off(this._map,"exitFullscreen",this._onExitFullscreen,this),L.DomEvent.on(this._map,"enterFullscreen",this._onEnterFullscreen,this),L.DomEvent.on(this._map,"exitFullscreen",this._onExitFullscreen,this),L.DomUtil.addClass(this._map._container,"leaflet-gesture-handling")},removeHooks:function(){this._enableInteractions(),this._map._container.removeEventListener("touchstart",this._handleTouch),this._map._container.removeEventListener("touchmove",this._handleTouch),this._map._container.removeEventListener("touchend",this._handleTouch),this._map._container.removeEventListener("touchcancel",this._handleTouch),this._map._container.removeEventListener("click",this._handleTouch),L.DomEvent.off(this._map._container,"wheel",this._handleScroll,this),L.DomEvent.off(this._map._container,"mouseenter",this._handleMouseOver,this),L.DomEvent.off(this._map._container,"mouseleave",this._handleMouseOut,this),L.DomEvent.off(this._map,"movestart",this._handleDragging,this),L.DomEvent.off(this._map,"move",this._handleDragging,this),L.DomEvent.off(this._map,"moveend",this._handleDragging,this),this._map.off("popupopen",this._handleScrollOnPopup,this),this._map.off("popupclose",this._handleScrollOnPopup,this),L.DomUtil.removeClass(this._map._container,"leaflet-gesture-handling")},_handleDragging:function(e){"movestart"==e.type||"move"==e.type?i=!0:"moveend"==e.type&&(i=!1)},_disableInteractions:function(){this._map.dragging.disable(),this._map.scrollWheelZoom.disable(),this._map.tap&&this._map.tap.disable()},_enableInteractions:function(){this._map.dragging.enable(),this._map.scrollWheelZoom.enable(),this._map.tap&&this._map.tap.enable()},_enableWarning:function(e){clearTimeout(this._isFading),L.DomUtil.addClass(this._map._container,"leaflet-gesture-handling-"+e),L.DomUtil.addClass(this._map._container,"leaflet-gesture-handling-warning")},_disableWarning:function(e,t){clearTimeout(this._isFading),this._isFading=setTimeout(L.bind((function(e){L.DomUtil.removeClass(this._map._container,"leaflet-gesture-handling-"+e)}),this,e),t||this._map.options.gestureHandlingOptions.duration),L.DomUtil.removeClass(this._map._container,"leaflet-gesture-handling-warning")},_isLanguageContent:function(e){return e&&e.touch&&e.scroll&&e.scrollMac},_isMacUser:function(){return navigator.platform.toUpperCase().indexOf("MAC")>=0},_parseGestureHandlingOptions:function(){var e=this._map.options.gestureHandlingOptions.text||this._map.options.gestureHandlingText||s.text,t=this._map.options.gestureHandlingOptions.duration||this._map.options.gestureHandlingDuration||s.duration,n=L.extend(this._map.options.gestureHandlingOptions,s);return n.text=e,n.duration=t,n},_setGestureHandlingOptions:function(){var e=this._parseGestureHandlingOptions();(this._isLanguageContent(e.text)?Promise.resolve(e.text):this._getLanguageContent(e.locale)).then((e=>{this._map._container.setAttribute("data-gesture-handling-touch-content",e.touch),this._map._container.setAttribute("data-gesture-handling-scroll-content",e.scroll),this._touchWarning=e.touch,this._scrollWarning=e.scroll}))},_getUserLanguage:function(){return navigator.languages?navigator.languages[0]:navigator.language||navigator.userLanguage},_getLanguageContent:function(e){e=e||this._getUserLanguage()||"en";var i,s=new Promise((e=>{i=e})),a=e=>{var t=e.default||{};t.scroll=this._isMacUser()?t.scrollMac:t.scroll,i(t)};return import(n+"./locales/"+e+".js").then(a).catch((i=>import(n+"./locales/"+e.split("-")[0]+".js").then(a).catch((e=>Promise.resolve({default:t}).then(a))))),s},_handleTouch:function(e){L.DomUtil.hasClass(e.target,"leaflet-interactive")||e.target.closest(".leaflet-control-container")||e.target.closest(".leaflet-popup-pane")?L.DomUtil.hasClass(e.target,"leaflet-interactive")&&"touchmove"===e.type&&1===e.touches.length?this._enableTouchWarning():this._disableTouchWarning():"touchmove"!==e.type&&"touchstart"!==e.type?this._disableTouchWarning():1===e.touches.length?this._enableTouchWarning():(e.preventDefault(),this._disableTouchWarning(),this._enableInteractions())},_enableTouchWarning:function(){this._enableWarning("touch"),this._disableInteractions()},_disableTouchWarning:function(e){clearTimeout(this._isTouching),this._isTouching=setTimeout(L.bind((function(){this._disableWarning("touch")}),this),e||0)},_enableScrollWarning:function(){this._enableWarning("scroll"),this._map.scrollWheelZoom.disable()},_disableScrollWarning:function(e){clearTimeout(this._isScrolling),this._isScrolling=setTimeout(L.bind((function(){this._disableWarning("scroll"),this._map.scrollWheelZoom.enable()}),this),e||0)},_handleScroll:function(e){e.metaKey||e.ctrlKey||e.shiftKey&&this._map._rotate?(e.preventDefault(),this._disableScrollWarning()):(this._enableScrollWarning(),this._disableScrollWarning(this._map.options.gestureHandlingOptions.duration))},_handleScrollOnPopup:function(e){L.DomEvent["popupopen"==e.type?"on":"off"](e.popup._contentNode,"wheel",this._handleScroll,this)},_handleMouseOver:function(e){this._enableInteractions()},_handleMouseOut:function(e){i||this._disableInteractions()},_onExitFullscreen:function(){this._map.options.gestureHandling&&this._map.gestureHandling.enable()},_onEnterFullscreen:function(){this._map.options.gestureHandling&&this._map.gestureHandling.disable()}});L.Map.mergeOptions({gestureHandlingOptions:s}),L.Map.addInitHook("addHandler","gestureHandling",a),e.GestureHandling=a,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self)["leaflet-gesture-handling"]={})}(this,(function(e){"use strict";var t={touch:"Use two fingers to move the map",scroll:"Use ctrl + scroll to zoom the map",scrollMac:"Use ⌘ + scroll to zoom the map"};const n=(document.currentScript&&document.currentScript.src||{url:"undefined"==typeof document?new(require("url").URL)("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("leaflet-gesture-handling.min.js",document.baseURI).href}&&("undefined"==typeof document?new(require("url").URL)("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("leaflet-gesture-handling.min.js",document.baseURI).href)).split("/").slice(0,-1).join("/")+"/";var i=!1,o={text:{},duration:1700},s=L.Handler.extend({_isScrolling:!1,_isTouching:!1,_isFading:!1,addHooks:function(){this._handleTouch=L.bind(this._handleTouch,this),this._setGestureHandlingOptions(),this._disableInteractions(),this._map._container.addEventListener("touchstart",this._handleTouch),this._map._container.addEventListener("touchmove",this._handleTouch),this._map._container.addEventListener("touchend",this._handleTouch),this._map._container.addEventListener("touchcancel",this._handleTouch),this._map._container.addEventListener("click",this._handleTouch),L.DomEvent.on(this._map._container,"wheel",this._handleScroll,this),L.DomEvent.on(this._map._container,"mouseenter",this._handleMouseOver,this),L.DomEvent.on(this._map._container,"mouseleave",this._handleMouseOut,this),L.DomEvent.on(this._map,"movestart",this._handleDragging,this),L.DomEvent.on(this._map,"move",this._handleDragging,this),L.DomEvent.on(this._map,"moveend",this._handleDragging,this),this._map.on("popupopen",this._handleScrollOnPopup,this),this._map.on("popupclose",this._handleScrollOnPopup,this),L.DomEvent.off(this._map,"enterFullscreen",this._onEnterFullscreen,this),L.DomEvent.off(this._map,"exitFullscreen",this._onExitFullscreen,this),L.DomEvent.on(this._map,"enterFullscreen",this._onEnterFullscreen,this),L.DomEvent.on(this._map,"exitFullscreen",this._onExitFullscreen,this),L.DomUtil.addClass(this._map._container,"leaflet-gesture-handling")},removeHooks:function(){this._enableInteractions(),this._map._container.removeEventListener("touchstart",this._handleTouch),this._map._container.removeEventListener("touchmove",this._handleTouch),this._map._container.removeEventListener("touchend",this._handleTouch),this._map._container.removeEventListener("touchcancel",this._handleTouch),this._map._container.removeEventListener("click",this._handleTouch),L.DomEvent.off(this._map._container,"wheel",this._handleScroll,this),L.DomEvent.off(this._map._container,"mouseenter",this._handleMouseOver,this),L.DomEvent.off(this._map._container,"mouseleave",this._handleMouseOut,this),L.DomEvent.off(this._map,"movestart",this._handleDragging,this),L.DomEvent.off(this._map,"move",this._handleDragging,this),L.DomEvent.off(this._map,"moveend",this._handleDragging,this),this._map.off("popupopen",this._handleScrollOnPopup,this),this._map.off("popupclose",this._handleScrollOnPopup,this),L.DomUtil.removeClass(this._map._container,"leaflet-gesture-handling")},_handleDragging:function(e){"movestart"==e.type||"move"==e.type?i=!0:"moveend"==e.type&&(i=!1)},_disableInteraction:function(e){this._map.options[e]&&this._map[e]&&this._map[e].disable()},_enableInteraction:function(e){this._map.options[e]&&this._map[e]&&this._map[e].enable()},_disableInteractions:function(){this._disableInteraction("dragging"),this._disableInteraction("scrollWheelZoom"),this._disableInteraction("tap")},_enableInteractions:function(){this._enableInteraction("dragging"),this._enableInteraction("scrollWheelZoom"),this._enableInteraction("tap")},_enableWarning:function(e){clearTimeout(this._isFading),L.DomUtil.addClass(this._map._container,"leaflet-gesture-handling-"+e),L.DomUtil.addClass(this._map._container,"leaflet-gesture-handling-warning")},_disableWarning:function(e,t){clearTimeout(this._isFading),this._isFading=setTimeout(L.bind((function(e){L.DomUtil.removeClass(this._map._container,"leaflet-gesture-handling-"+e)}),this,e),t||this._map.options.gestureHandlingOptions.duration),L.DomUtil.removeClass(this._map._container,"leaflet-gesture-handling-warning")},_isLanguageContent:function(e){return e&&e.touch&&e.scroll&&e.scrollMac},_isMacUser:function(){return navigator.platform.toUpperCase().indexOf("MAC")>=0},_parseGestureHandlingOptions:function(){var e=this._map.options.gestureHandlingOptions.text||this._map.options.gestureHandlingText||o.text,t=this._map.options.gestureHandlingOptions.duration||this._map.options.gestureHandlingDuration||o.duration,n=L.extend(this._map.options.gestureHandlingOptions,o);return n.text=e,n.duration=t,n},_setGestureHandlingOptions:function(){var e=this._parseGestureHandlingOptions();(this._isLanguageContent(e.text)?Promise.resolve(e.text):this._getLanguageContent(e.locale)).then((e=>{this._map._container.setAttribute("data-gesture-handling-touch-content",e.touch),this._map._container.setAttribute("data-gesture-handling-scroll-content",e.scroll),this._touchWarning=e.touch,this._scrollWarning=e.scroll}))},_getUserLanguage:function(){return navigator.languages?navigator.languages[0]:navigator.language||navigator.userLanguage},_getLanguageContent:function(e){e=e||this._getUserLanguage()||"en";var i,o=new Promise((e=>{i=e})),s=e=>{var t=e.default||{};t.scroll=this._isMacUser()?t.scrollMac:t.scroll,i(t)};return import(n+"./locales/"+e+".js").then(s).catch((i=>import(n+"./locales/"+e.split("-")[0]+".js").then(s).catch((e=>Promise.resolve({default:t}).then(s))))),o},_handleTouch:function(e){L.DomUtil.hasClass(e.target,"leaflet-interactive")||e.target.closest(".leaflet-control-container")||e.target.closest(".leaflet-popup-pane")?L.DomUtil.hasClass(e.target,"leaflet-interactive")&&"touchmove"===e.type&&1===e.touches.length?this._enableTouchWarning():this._disableTouchWarning():"touchmove"!==e.type&&"touchstart"!==e.type?this._disableTouchWarning():1===e.touches.length?this._enableTouchWarning():(e.preventDefault(),this._disableTouchWarning(),this._enableInteractions())},_enableTouchWarning:function(){this._enableWarning("touch"),this._disableInteractions()},_disableTouchWarning:function(e){clearTimeout(this._isTouching),this._isTouching=setTimeout(L.bind((function(){this._disableWarning("touch")}),this),e||0)},_enableScrollWarning:function(){this._enableWarning("scroll"),this._disableInteraction("scrollWheelZoom")},_disableScrollWarning:function(e){clearTimeout(this._isScrolling),this._isScrolling=setTimeout(L.bind((function(){this._disableWarning("scroll"),this._enableInteraction("scrollWheelZoom")}),this),e||0)},_handleScroll:function(e){this._map.scrollWheelZoom&&this._map.scrollWheelZoom.enabled()&&(e.metaKey||e.ctrlKey||e.shiftKey&&this._map._rotate?(e.preventDefault(),this._disableScrollWarning()):(this._enableScrollWarning(),this._disableScrollWarning(this._map.options.gestureHandlingOptions.duration)))},_handleScrollOnPopup:function(e){L.DomEvent["popupopen"==e.type?"on":"off"](e.popup._contentNode,"wheel",this._handleScroll,this)},_handleMouseOver:function(e){this._enableInteractions()},_handleMouseOut:function(e){i||this._disableInteractions()},_onExitFullscreen:function(){this._map.options.gestureHandling&&this._map.gestureHandling.enable()},_onEnterFullscreen:function(){this._map.options.gestureHandling&&this._map.gestureHandling.disable()}});L.Map.mergeOptions({gestureHandlingOptions:o}),L.Map.addInitHook("addHandler","gestureHandling",s),e.GestureHandling=s,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=leaflet-gesture-handling.min.js.map |
@@ -0,0 +0,0 @@ //Arabic |
@@ -0,0 +0,0 @@ //Bulgarian |
@@ -0,0 +0,0 @@ //Bengali |
@@ -0,0 +0,0 @@ //Catalan |
@@ -0,0 +0,0 @@ //Czech |
@@ -0,0 +0,0 @@ //Danish |
@@ -0,0 +0,0 @@ //German |
@@ -0,0 +0,0 @@ //Greek |
@@ -0,0 +0,0 @@ //English (Australian) |
@@ -0,0 +0,0 @@ //English (Great Britain) |
@@ -0,0 +0,0 @@ //English |
@@ -0,0 +0,0 @@ //Spanish |
@@ -0,0 +0,0 @@ //Basque |
@@ -0,0 +0,0 @@ //Farsi |
@@ -0,0 +0,0 @@ //Finnish |
@@ -0,0 +0,0 @@ //Filipino |
@@ -0,0 +0,0 @@ //French |
@@ -0,0 +0,0 @@ //Galician |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ //Hindi |
@@ -0,0 +0,0 @@ //Croatian |
@@ -0,0 +0,0 @@ //Hungarian |
@@ -0,0 +0,0 @@ //Indonesian |
@@ -0,0 +0,0 @@ //Italian |
@@ -0,0 +0,0 @@ //Italian |
@@ -0,0 +0,0 @@ //Hebrew |
@@ -0,0 +0,0 @@ //Japanese |
@@ -0,0 +0,0 @@ //Kannada |
@@ -0,0 +0,0 @@ //Korean |
@@ -0,0 +0,0 @@ //Lithuanian |
@@ -0,0 +0,0 @@ //Latvian |
@@ -0,0 +0,0 @@ //Malayalam |
@@ -0,0 +0,0 @@ //Marathi |
@@ -0,0 +0,0 @@ //Dutch |
@@ -0,0 +0,0 @@ //Norwegian |
@@ -0,0 +0,0 @@ //Polish |
@@ -0,0 +0,0 @@ //Portuguese (Brazil) |
@@ -0,0 +0,0 @@ //Portuguese (Portugal) |
@@ -0,0 +0,0 @@ //Portuguese |
@@ -0,0 +0,0 @@ //Romanian |
@@ -0,0 +0,0 @@ //Russian |
@@ -0,0 +0,0 @@ //Slovak |
@@ -0,0 +0,0 @@ //Slovenian |
@@ -0,0 +0,0 @@ //Serbian |
@@ -0,0 +0,0 @@ //Swedish |
@@ -0,0 +0,0 @@ //Tamil |
@@ -0,0 +0,0 @@ //Telugu |
@@ -0,0 +0,0 @@ //Thai |
@@ -0,0 +0,0 @@ //Tagalog |
@@ -0,0 +0,0 @@ //Turkish |
@@ -0,0 +0,0 @@ //Ukrainian |
@@ -0,0 +0,0 @@ //Vietnamese |
@@ -0,0 +0,0 @@ //Chinese (Simplified) |
@@ -0,0 +0,0 @@ //Chinese (Traditional) |
{ | ||
"name": "@raruto/leaflet-gesture-handling", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"description": "A Leaflet plugin that allows to prevent default map scroll/touch behaviours", | ||
@@ -5,0 +5,0 @@ "main": "./dist/leaflet-gesture-handling.min.js", |
@@ -0,0 +0,0 @@ # leaflet-gesture-handling.js |
@@ -84,12 +84,26 @@ import defaultLocale from "./locales/en.js"; | ||
_disableInteraction: function(name) { | ||
// disable the handler only if related option is true | ||
if (this._map.options[name] && this._map[name]) { | ||
this._map[name].disable(); | ||
} | ||
}, | ||
_enableInteraction: function(name) { | ||
// enable the handler only if related option is true | ||
if (this._map.options[name] && this._map[name]) { | ||
this._map[name].enable(); | ||
} | ||
}, | ||
_disableInteractions: function() { | ||
this._map.dragging.disable(); | ||
this._map.scrollWheelZoom.disable(); | ||
if (this._map.tap) this._map.tap.disable(); | ||
this._disableInteraction('dragging'); | ||
this._disableInteraction('scrollWheelZoom'); | ||
this._disableInteraction('tap'); | ||
}, | ||
_enableInteractions: function() { | ||
this._map.dragging.enable(); | ||
this._map.scrollWheelZoom.enable(); | ||
if (this._map.tap) this._map.tap.enable(); | ||
this._enableInteraction('dragging'); | ||
this._enableInteraction('scrollWheelZoom'); | ||
this._enableInteraction('tap'); | ||
}, | ||
@@ -212,3 +226,3 @@ | ||
this._enableWarning('scroll'); | ||
this._map.scrollWheelZoom.disable(); | ||
this._disableInteraction('scrollWheelZoom'); | ||
}, | ||
@@ -223,3 +237,3 @@ | ||
this._disableWarning('scroll'); | ||
this._map.scrollWheelZoom.enable(); | ||
this._enableInteraction('scrollWheelZoom'); | ||
}, this), | ||
@@ -231,8 +245,10 @@ delay || 0 | ||
_handleScroll: function(e) { | ||
if (e.metaKey || e.ctrlKey || (e.shiftKey && this._map._rotate)) { | ||
e.preventDefault(); | ||
this._disableScrollWarning(); | ||
} else { | ||
this._enableScrollWarning(); | ||
this._disableScrollWarning(this._map.options.gestureHandlingOptions.duration); | ||
if (this._map.scrollWheelZoom && this._map.scrollWheelZoom.enabled()) { | ||
if (e.metaKey || e.ctrlKey || (e.shiftKey && this._map._rotate)) { | ||
e.preventDefault(); | ||
this._disableScrollWarning(); | ||
} else { | ||
this._enableScrollWarning(); | ||
this._disableScrollWarning(this._map.options.gestureHandlingOptions.duration); | ||
} | ||
} | ||
@@ -239,0 +255,0 @@ }, |
@@ -0,0 +0,0 @@ //Arabic |
@@ -0,0 +0,0 @@ //Bulgarian |
@@ -0,0 +0,0 @@ //Bengali |
@@ -0,0 +0,0 @@ //Catalan |
@@ -0,0 +0,0 @@ //Czech |
@@ -0,0 +0,0 @@ //Danish |
@@ -0,0 +0,0 @@ //German |
@@ -0,0 +0,0 @@ //Greek |
@@ -0,0 +0,0 @@ //English (Australian) |
@@ -0,0 +0,0 @@ //English (Great Britain) |
@@ -0,0 +0,0 @@ //English |
@@ -0,0 +0,0 @@ //Spanish |
@@ -0,0 +0,0 @@ //Basque |
@@ -0,0 +0,0 @@ //Farsi |
@@ -0,0 +0,0 @@ //Finnish |
@@ -0,0 +0,0 @@ //Filipino |
@@ -0,0 +0,0 @@ //French |
@@ -0,0 +0,0 @@ //Galician |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ //Hindi |
@@ -0,0 +0,0 @@ //Croatian |
@@ -0,0 +0,0 @@ //Hungarian |
@@ -0,0 +0,0 @@ //Indonesian |
@@ -0,0 +0,0 @@ //Italian |
@@ -0,0 +0,0 @@ //Italian |
@@ -0,0 +0,0 @@ //Hebrew |
@@ -0,0 +0,0 @@ //Japanese |
@@ -0,0 +0,0 @@ //Kannada |
@@ -0,0 +0,0 @@ //Korean |
@@ -0,0 +0,0 @@ //Lithuanian |
@@ -0,0 +0,0 @@ //Latvian |
@@ -0,0 +0,0 @@ //Malayalam |
@@ -0,0 +0,0 @@ //Marathi |
@@ -0,0 +0,0 @@ //Dutch |
@@ -0,0 +0,0 @@ //Norwegian |
@@ -0,0 +0,0 @@ //Polish |
@@ -0,0 +0,0 @@ //Portuguese (Brazil) |
@@ -0,0 +0,0 @@ //Portuguese (Portugal) |
@@ -0,0 +0,0 @@ //Portuguese |
@@ -0,0 +0,0 @@ //Romanian |
@@ -0,0 +0,0 @@ //Russian |
@@ -0,0 +0,0 @@ //Slovak |
@@ -0,0 +0,0 @@ //Slovenian |
@@ -0,0 +0,0 @@ //Serbian |
@@ -0,0 +0,0 @@ //Swedish |
@@ -0,0 +0,0 @@ //Tamil |
@@ -0,0 +0,0 @@ //Telugu |
@@ -0,0 +0,0 @@ //Thai |
@@ -0,0 +0,0 @@ //Tagalog |
@@ -0,0 +0,0 @@ //Turkish |
@@ -0,0 +0,0 @@ //Ukrainian |
@@ -0,0 +0,0 @@ //Vietnamese |
@@ -0,0 +0,0 @@ //Chinese (Simplified) |
@@ -0,0 +0,0 @@ //Chinese (Traditional) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1189
160766
120