Skip to content

Commit

Permalink
Merge pull request #56 from freepius44/patch-1
Browse files Browse the repository at this point in the history
L.Control.Zoomslider.js : update _onSliderClick() function
  • Loading branch information
mattiasb committed Oct 31, 2013
2 parents 74c3ab0 + a6eae44 commit 36de01b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/L.Control.Zoomslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ L.Control.Zoomslider = (function () {

_onSliderClick: function (e) {
var first = (e.touches && e.touches.length === 1 ? e.touches[0] : e),
y = L.DomEvent.getMousePosition(first).y
- L.DomUtil.getViewportOffset(this._ui.body).y; // Cache this?
y = L.DomEvent.getMousePosition(first, this._ui.body).y;

this._knob.setPosition(y);
this._updateMapZoom();
Expand Down

0 comments on commit 36de01b

Please sign in to comment.