Browse Source

fix: Update lib fullscreen pour compat ios

cf https://github.com/brunob/leaflet.fullscreen/issues/99
pull/46/head
b_b 4 months ago
parent
commit
c16d6c9951
  1. 1
      CHANGELOG.md
  2. 30
      lib/leaflet/plugins/Control.FullScreen.js

1
CHANGELOG.md

@ -4,6 +4,7 @@
### Fixed
- Update lib fullscreen pour compat ios
- Rétablir la compatibilité avec PHP < 7
## [4.53.0] - 2022-05-25

30
lib/leaflet/plugins/Control.FullScreen.js vendored

@ -241,13 +241,15 @@
.off(this.link, 'click', leaflet.DomEvent.stop)
.off(this.link, 'click', this.toggleFullScreen, this);
leaflet.DomEvent
.off(this._container, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.stop)
.off(this._container, this._screenfull.raw.fullscreenchange, this._handleFullscreenChange, this);
leaflet.DomEvent
.off(document, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.stop)
.off(document, this._screenfull.raw.fullscreenchange, this._handleFullscreenChange, this);
if (this._screenfull.isEnabled) {
leaflet.DomEvent
.off(this._container, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.stop)
.off(this._container, this._screenfull.raw.fullscreenchange, this._handleFullscreenChange, this);
leaflet.DomEvent
.off(document, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.stop)
.off(document, this._screenfull.raw.fullscreenchange, this._handleFullscreenChange, this);
}
},
_createButton: function (title, className, content, container, fn, context) {
@ -265,13 +267,15 @@
.on(this.link, 'click', leaflet.DomEvent.stop)
.on(this.link, 'click', fn, context);
leaflet.DomEvent
.on(container, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.stop)
.on(container, this._screenfull.raw.fullscreenchange, this._handleFullscreenChange, context);
if (this._screenfull.isEnabled) {
leaflet.DomEvent
.on(container, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.stop)
.on(container, this._screenfull.raw.fullscreenchange, this._handleFullscreenChange, context);
leaflet.DomEvent
.on(document, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.stop)
.on(document, this._screenfull.raw.fullscreenchange, this._handleFullscreenChange, context);
leaflet.DomEvent
.on(document, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.stop)
.on(document, this._screenfull.raw.fullscreenchange, this._handleFullscreenChange, context);
}
return this.link;
},

Loading…
Cancel
Save