From 3b400c6cf721b08945e4b68918cf3cc6e23f7005 Mon Sep 17 00:00:00 2001 From: csawatzky Date: Fri, 6 Jun 2025 13:35:38 -0600 Subject: [PATCH] updated the logic for the cursor the cursor chainging on hover ws causing issues when drawing across a field --- src/maps/MapBase.tsx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/maps/MapBase.tsx b/src/maps/MapBase.tsx index fbd1057..b1dc432 100644 --- a/src/maps/MapBase.tsx +++ b/src/maps/MapBase.tsx @@ -595,19 +595,17 @@ export default function MapBase(props: Props) { }} onMouseEnter={() => { if ( - !props.editorMode || - !props.placingMarker || - props.editorMode === "none" || - !props.placingMarker + (props.editorMode === "none" || props.editorMode === undefined) && + !props.placingMarker && + !props.drawMeasurement ) onMouseEnter(); }} onMouseLeave={() => { if ( - !props.editorMode || - !props.placingMarker || - props.editorMode === "none" || - !props.placingMarker + (props.editorMode === "none" || props.editorMode === undefined) && + !props.placingMarker && + !props.drawMeasurement ) onMouseLeave(); }}