Skip to content

Commit

Permalink
#10 keepOn option not working, fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
gregallensworth committed Mar 11, 2019
1 parent 6561f7a commit ffbf76c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion dist/leaflet-control-boxzoom-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ L.Control.BoxZoom = L.Control.extend({
}

this.map.on('mousedown', this.handleMouseDown, this);
this.map.on('boxzoomend', this.setStateOff, this);
if (!this.options.keepOn) {
this.map.on('boxzoomend', this.setStateOff, this);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/leaflet-control-boxzoom.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ffbf76c

Please sign in to comment.