ITADN

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

#100Openaustincondiff 创建于 2025-06-04
bug
A
austincondiffcommented
### 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. ### Version Information _No response_ ### 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. This issue makes it difficult to select long lines of code, especially in horizontally scrollable documents. A video demo can be provided if needed. ### Screenshots _No response_
0 条评论