Skip to content

Issue with AreaMeasurement #670

@Sephiroth5050

Description

@Sephiroth5050

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.

Image

Reproduction ▶️

No response

Steps to reproduce 🔢

No response

System Info 💻

-

Used Package Manager 📦

yarn

Error Trace/Logs 📃

No response

Validations ✅

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Make sure this is a repository issue and not a framework-specific issue. For example, if it's a THREE.js related bug, it should likely be reported to mrdoob/threejs instead.
  • Check that this is a concrete bug. For Q&A join our Community.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions