Skip to content

Commit

Permalink
use mousedown instead of click for svg polygon layer
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchthorson committed Dec 20, 2024
1 parent 0148ac1 commit a0a1ecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/maps/SVGPolygonLayer/SVGPolygonLayer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
></path>
{/each}
</g>
Expand Down

0 comments on commit a0a1ecb

Please sign in to comment.