mirror of
https://github.com/umap-project/umap.git
synced 2025-05-07 23:01:50 +02:00
Compare commits
No commits in common. "a7b714c887abb3abf5dd632310030e5b5b2a7c8d" and "ec23f09e5b2750e9583c3d666fe71661323f2ebb" have entirely different histories.
a7b714c887
...
ec23f09e5b
1 changed files with 1 additions and 6 deletions
|
@ -285,14 +285,9 @@ export const LeafletMap = BaseMap.extend({
|
||||||
setOptions(this, this._umap.properties)
|
setOptions(this, this._umap.properties)
|
||||||
if (this.options.scrollWheelZoom) {
|
if (this.options.scrollWheelZoom) {
|
||||||
this.scrollWheelZoom.enable()
|
this.scrollWheelZoom.enable()
|
||||||
this.dragging.enable()
|
|
||||||
} else {
|
} else {
|
||||||
this.scrollWheelZoom.disable()
|
this.scrollWheelZoom.disable()
|
||||||
// In mobile, do not let the user move the map
|
this.options.dragging = !L.Browser.mobile
|
||||||
// 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()
|
|
||||||
}
|
}
|
||||||
// Needs tilelayer to exist for minimap
|
// Needs tilelayer to exist for minimap
|
||||||
this.renderControls()
|
this.renderControls()
|
||||||
|
|
Loading…
Reference in a new issue