Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
austincondiff opened this issue Jun 4, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@austincondiff
Copy link
Contributor

austincondiff commented Jun 4, 2025

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.

@austincondiff austincondiff added the bug Something isn't working label Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant