Skip to content

🐞 Text Selection Doesn't Update When Dragging Outside Horizontal Bounds of Text View #100

Open
@austincondiff

Description

@austincondiff

Description

When dragging to create a text selection, if the mouse is moved outside the horizontal bounds of the text view, the selection range stops updating. This breaks expected behavior where the selection should continue to adjust based on the mouse's position—even when it moves outside the view horizontally—until the mouse is released.

This behavior is standard in macOS text editors and is important for selecting text that extends beyond the visible horizontal area.

To Reproduce

  1. Click and drag to begin a text selection in the editor.
  2. While still dragging, move the mouse outside the left or right edge of the text view.
  3. Observe the selection range.

Expected Behavior

  • The selection range should continue updating based on the mouse’s position, even when it moves outside the horizontal edges of the text view. Horizontal autoscroll should also be triggered if applicable.

Current Behavior

  • The selection range stops updating when the cursor leaves the horizontal bounds of the text view.

Additional Context

Ensure the text view tracks mouse movement beyond its horizontal bounds during an active drag operation. Autoscrolling behavior may also need to be implemented or refined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions