mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-11-15 07:07:07 +00:00
hide point info in routing and scissors tools
This commit is contained in:
1 parent
21e27a4416
commit
002fd259aa
1 file changed
+6
-1
@@ -406,7 +406,12 @@ export class GPXLayer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
layerOnMouseMove(e: MapLayerMouseEvent) {
|
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) {
|
if (index === undefined) {
|
||||||
this.stopHoveringTrackpoint();
|
this.stopHoveringTrackpoint();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in new issue
Block a user