updated the logic for the cursor

the cursor chainging on hover ws causing issues when drawing across a field
This commit is contained in:
csawatzky 2025-06-06 13:35:38 -06:00
parent e09425a465
commit 3b400c6cf7

View file

@ -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();
}}