nakarte

Source code of https://map.sikmir.ru (fork)
git clone git://git.sikmir.ru/nakarte
Log | Files | Refs | LICENSE

commit a4734e4af2ed33e5de5cdf273d70174e463cc76e
parent 0e2a214f37fb19497aea8e0bc5925a6e499d0295
Author: Sergej Orlov <wladimirych@gmail.com>
Date:   Tue, 21 Mar 2017 01:17:38 +0300

[elevation] zoom profile with step not greater then 1

Diffstat:
Msrc/lib/leaflet.control.elevation-profile/index.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/leaflet.control.elevation-profile/index.js b/src/lib/leaflet.control.elevation-profile/index.js @@ -382,7 +382,7 @@ L.Control.ElevationProfile = L.Class.extend({ onSvgMouseWheel: function(e) { var oldHorizZoom = this.horizZoom; - this.horizZoom += L.DomEvent.getWheelDelta(e); + this.horizZoom += L.DomEvent.getWheelDelta(e) > 0 ? 1 : -1; if (this.horizZoom < 1) { this.horizZoom = 1; }