From c10d870bd91fa2564e9079a040c20750505045eb Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 21 Mar 2015 22:15:25 +0000 Subject: Workaround for Chromium/Android WebView issue There seems to be an issue with the clickable region of svg textPath elements. This sets the pointer-events attribute to none, to avoid it being clickable. The actual route underneath receives the event instead. --- resources/leaflet-route/leaflet-route.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'resources') diff --git a/resources/leaflet-route/leaflet-route.js b/resources/leaflet-route/leaflet-route.js index 1fa8e7c..d0b14df 100644 --- a/resources/leaflet-route/leaflet-route.js +++ b/resources/leaflet-route/leaflet-route.js @@ -108,7 +108,8 @@ L.Route = L.FeatureGroup.extend({ offset: 3, attributes: { fill: 'black', - fontSize: 24 + fontSize: 24, + "pointer-events": "none" } }); -- cgit v1.2.3