nakarte

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

commit cda41450ef00bc7b9dedc468418b8278af12ebdc
parent 9977096d7e240af13a3864c7c4489ef91bfb0805
Author: Sergej Orlov <wladimirych@gmail.com>
Date:   Wed, 27 May 2026 19:04:50 +0200

Remove Leaflet hack for filtering clicks on Android 4

Backport of https://github.com/Leaflet/Leaflet/pull/7013
Fixes: #1401

Diffstat:
Msrc/lib/leaflet.fixes/index.js | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/lib/leaflet.fixes/index.js b/src/lib/leaflet.fixes/index.js @@ -109,6 +109,13 @@ function fixDoubleZoomOnMouseWheel() { }; } +// Removed in 1.7.0 https://github.com/Leaflet/Leaflet/pull/7013/ +function removeClickFilterForAndroid4() { + L.DomEvent._filterClick = function _filterClick(e, handler) { + handler(e); + }; +} + function fixAll() { fixPanAnimationBug(); fixTouchDetection(); @@ -118,6 +125,7 @@ function fixAll() { allowControlHorizontalStacking(); addTooltipDelay(); fixDoubleZoomOnMouseWheel(); + removeClickFilterForAndroid4(); } export {fixAll};