Describe the bug 📝
This only happens with AreaMeasurement. I added a keydown handler so pressing Escape disables the measurer. It works correctly for all measurement types (including area). However, if I’m moving the mouse while pressing Escape, an error is thrown because the measurer gets disabled in the middle of the interaction, regardless of whether measurement points have already been placed.
Reproduction ▶️
No response
Steps to reproduce 🔢
No response
System Info 💻
Used Package Manager 📦
yarn
Error Trace/Logs 📃
No response
Validations ✅
Describe the bug 📝
This only happens with AreaMeasurement. I added a keydown handler so pressing Escape disables the measurer. It works correctly for all measurement types (including area). However, if I’m moving the mouse while pressing Escape, an error is thrown because the measurer gets disabled in the middle of the interaction, regardless of whether measurement points have already been placed.
Reproduction▶️
No response
Steps to reproduce 🔢
No response
System Info 💻
Used Package Manager 📦
yarn
Error Trace/Logs 📃
No response
Validations ✅