Compare commits

..

No commits in common. "a7b714c887abb3abf5dd632310030e5b5b2a7c8d" and "ec23f09e5b2750e9583c3d666fe71661323f2ebb" have entirely different histories.

View file

@ -285,14 +285,9 @@ export const LeafletMap = BaseMap.extend({
setOptions(this, this._umap.properties)
if (this.options.scrollWheelZoom) {
this.scrollWheelZoom.enable()
this.dragging.enable()
} else {
this.scrollWheelZoom.disable()
// In mobile, do not let the user move the map
// when scrolling the main page and touching the
// map in an iframe. May be a bit dumb, but let's
// try like this for now.
if (L.Browser.mobile) this.dragging.disable()
this.options.dragging = !L.Browser.mobile
}
// Needs tilelayer to exist for minimap
this.renderControls()