Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Commit

Permalink
Fixes #164
Browse files Browse the repository at this point in the history
  • Loading branch information
nateirwin committed Mar 6, 2019
1 parent dca76d6 commit 43fa389
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/control/fullscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,14 @@ var FullscreenControl = L.Control.extend({
this._button = L.DomUtil.create('button', undefined, this._container);
this._setIcon('enterFullscreen');
this._button.setAttribute('alt', 'Enter fullscreen');
L.DomEvent.addListener(this._button, 'click', this.fullscreen, this);
this._isFullscreen = false;
this._map = map;

L.DomEvent
.disableClickPropagation(this._button)
.on(this._button, 'click', L.DomEvent.preventDefault)
.on(this._button, 'click', this.fullscreen, this);

return this._container;
}
},
Expand Down

0 comments on commit 43fa389

Please sign in to comment.