hide point info in routing and scissors tools

This commit is contained in:
vcoppe committed 2026-11-08 15:15:16 +01:00
1 parent 21e27a4416
commit 002fd259aa
1 file changed
+6 -1
@@ -406,7 +406,12 @@ export class GPXLayer {
}
layerOnMouseMove(e: MapLayerMouseEvent) {
const index = this.selectedTrackpointAt(e);
// these tools act on the track under the pointer, and show it themselves
const tool = get(currentTool);
const index =
tool === Tool.ROUTING || tool === Tool.SCISSORS
? undefined
: this.selectedTrackpointAt(e);
if (index === undefined) {
this.stopHoveringTrackpoint();
} else {