Skip to content

Commit 13d94fa

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/develop'
2 parents da92be1 + 9209a83 commit 13d94fa

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

dist/leaflet-gesture-handling.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,10 @@
358358

359359
L.DomEvent.on(this._map, "movestart", this._handleDragging, this);
360360
L.DomEvent.on(this._map, "move", this._handleDragging, this);
361-
L.DomEvent.on(this._map, "moveend", this._handleDragging, this);
361+
L.DomEvent.on(this._map, "moveend", this._handleDragging, this); // Reset any previously added fullscreen events
362+
363+
L.DomEvent.off(this._map, "enterFullscreen", this._onEnterFullscreen, this);
364+
L.DomEvent.off(this._map, "exitFullscreen", this._onExitFullscreen, this);
362365
L.DomEvent.on(this._map, "enterFullscreen", this._onEnterFullscreen, this);
363366
L.DomEvent.on(this._map, "exitFullscreen", this._onExitFullscreen, this);
364367
L.DomUtil.addClass(this._map._container, "leaflet-gesture-handling");
@@ -382,8 +385,6 @@
382385
L.DomEvent.off(this._map, "movestart", this._handleDragging, this);
383386
L.DomEvent.off(this._map, "move", this._handleDragging, this);
384387
L.DomEvent.off(this._map, "moveend", this._handleDragging, this);
385-
L.DomEvent.off(this._map, "enterFullscreen", this._onEnterFullscreen, this);
386-
L.DomEvent.off(this._map, "exitFullscreen", this._onExitFullscreen, this);
387388
L.DomUtil.removeClass(this._map._container, "leaflet-gesture-handling");
388389
},
389390
_handleDragging: function (e) {

0 commit comments

Comments
 (0)