fixing the cursor logic
the cursor changing when you hover over a field while drawing was causing it to cancel it
This commit is contained in:
parent
2b904a9f93
commit
fbfa413cc1
1 changed files with 6 additions and 8 deletions
|
|
@ -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();
|
||||
}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue