nakarte

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

commit 3eec115dd3436c7d361088b471836e68a5427560
parent 2bfed97dc5bdf79780b69ec59058a6357de2cac0
Author: Sergej Orlov <wladimirych@gmail.com>
Date:   Fri, 25 May 2018 23:32:07 +0300

[elevation profile] listen events on svg element instead of container, thus we do not handle clicks on scrollbar. Fix #78

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 @@ -295,7 +295,7 @@ const ElevationProfile = L.Class.extend({ L.DomEvent.on(svg, 'mouseenter', this.onSvgEnter, this); L.DomEvent.on(svg, 'mouseleave', this.onSvgLeave, this); L.DomEvent.on(svg, 'mousewheel', this.onSvgMouseWheel, this); - this.svgDragEvents = new DragEvents(this.drawingContainer, null, {dragButtons: [0, 2]}); + this.svgDragEvents = new DragEvents(this.svg, null, {dragButtons: [0, 2]}); this.svgDragEvents.on('dragstart', this.onSvgDragStart, this); this.svgDragEvents.on('dragend', this.onSvgDragEnd, this); this.svgDragEvents.on('drag', this.onSvgDrag, this);