Skip to content

EdgeMeasurement is not working properly when clicking on no element #754

@pstowasser01

Description

@pstowasser01

Describe the bug 📝

When using Edge-Mode Lengthmeasurement (maybe other measurements have the same issue) clicking on no element (void) the last seen Measurement preview (the measurement label, etc. when not clicking yet) is being used instead of nothing happening!

Reusing of last edge might ease the use of edgemeasurements when not 100% aligning with the edge but there should be a check if there is a Edge available on the doubleclick for this bug.

Reproducable on Lengthmeasurement demo

Reproduction ▶️

No response

Steps to reproduce 🔢

  1. Goto https://thatopen.github.io/engine_components/examples/LengthMeasurement/
  2. hover over any edge
  3. "quickly" move your mouse over to the void (so no other edge-measurement-preview gets registered)
  4. doubleclick onto nothing

System Info 💻

not sure what version the demo is on but those are my projects versions:

"@thatopen/components": "3.4.6",
"@thatopen/components-front": "3.4.3",
"@thatopen/fragments": "3.4.5",
"@thatopen/ui": "3.4.1",
"@thatopen/ui-obc": "3.4.2",
"three": ">=0.182.0",
"web-ifc": ">=0.0.76"

Used Package Manager 📦

npm

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions