Skip to content

bug: can't select in the middle of a very short line #4472

@ShibuyaCyana

Description

@ShibuyaCyana

Steps To Reproduce

  1. add a very short line (vertical or horizontal path), length <= 4px
  2. try to select it at middle, it fails, and there's no "under mouse indicator" (a green line).
  3. move mouse to the outer region of two endpoints. Though it's far away from the path (considering how small it is), green line appears and it's possible to select it from there.

Expected behavior

  1. green line appears when mouse is near or inside the line, and the line can be selected.
  2. green line doesn't appear when mouse is near the endpoints but not inside the line.

Actual behavior

As the steps above.

Screenshots or video

record2.mp4

Desktop (please complete the following information)

  • Windows 11 22H2
  • Firefox 124.0.2 (64-bit)

Smartphone (please complete the following information)

No response

Environment (please complete the following information)

No response

Frontend Stack Trace

No response

Backend Stack Trace

No response

Additional context

in Figma there is also a margin area for easier selection of smaller things, but the margin width is almost constant with screen pixel, ensuring it doesn't get too large when closely zoomed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as expectedmanaged on taigaThis issue has been moved to our project at Taiga.io

    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