Prevent old style slideshow to be actived on load
We used to only consider the delay to define if the slideshow was active or not.
This commit is contained in:
parent
27a4fd7dc2
commit
24baed0c1a
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ L.U.Slideshow = L.Class.extend({
|
|||
|
||||
play: function () {
|
||||
if (this._id) return;
|
||||
if (this.map.editEnabled) return;
|
||||
if (this.map.editEnabled || !this.map.options.slideshow.active) return;
|
||||
L.DomUtil.addClass(document.body, L.U.Slideshow.CLASSNAME);
|
||||
this._id = window.setInterval(L.bind(this.loop, this), this.options.delay);
|
||||
this.resetSpinners();
|
||||
|
|
Loading…
Reference in a new issue