From a0a1ecb55a0b4278f96af49db51c675f94012247 Mon Sep 17 00:00:00 2001 From: mitchthorson Date: Thu, 19 Dec 2024 21:11:27 -0500 Subject: [PATCH] use mousedown instead of click for svg polygon layer --- src/lib/maps/SVGPolygonLayer/SVGPolygonLayer.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/maps/SVGPolygonLayer/SVGPolygonLayer.svelte b/src/lib/maps/SVGPolygonLayer/SVGPolygonLayer.svelte index d089bc27..8c37409f 100644 --- a/src/lib/maps/SVGPolygonLayer/SVGPolygonLayer.svelte +++ b/src/lib/maps/SVGPolygonLayer/SVGPolygonLayer.svelte @@ -163,7 +163,7 @@ stroke-width={strokeWidth / $transform.k} d={geoPathFn(feature)} on:mousemove={(e) => handleMousemove(e, feature)} - on:click={(e) => handleClick(e, feature)} + on:mousedown={(e) => handleClick(e, feature)} > {/each}