Drag scroll bar outside of window stops scrolling
Check for existing issues
- [X] Completed
Describe the bug / provide steps to reproduce it
When using the pointer to grab the scroll bar, then drag up or down to an area in the file, if the cursor location goes outside of the scrolling window onto the next window's line number area, the scrolling stops until I re-enter the area of the window that I'm scrolling - all the while I'm keeping the cursor pressed.
- Open up a couple of files in a two column layout
- On the left file, drag the scroll bar up or down
- While dragging, let the cursor wander over to the line-numbers area of the right column's file
- Notice that when you're moving the cursor in that area, the file stops scrolling
- If moving the cursor further to the right, on to the file in the right column, the scrolling of the left file continues as expected
Environment
Hardware:
Hardware Overview:
Model Name: MacBook Pro
Model Identifier: MacBookPro16,3
Processor Name: Quad-Core Intel Core i5
Processor Speed: 1.4 GHz
Number of Processors: 1
Total Number of Cores: 4
L2 Cache (per Core): 256 KB
L3 Cache: 6 MB
Hyper-Threading Technology: Enabled
Memory: 16 GB
System Firmware Version: 2069.0.0.0.0 (iBridge: 22.16.10353.0.0,0)
OS Loader Version: 582~1023
If applicable, add mockups / screenshots to help explain present your vision of the feature
I would expect scrolling to happen in the window that initiated the scroll for as long as the mouse is being pressed, no matter if I accidentally move the cursor horizontally over another area.
If applicable, attach your Zed.log file to this issue.
No response
I can reproduce. If you have a pair of panes with a vertical split between them, when click+holding the scroll bar of the left pane scrolling breaks when your mouse is over the gutter of the right pane.
I believe this was recently fixed via #28924
I'll go ahead and close this since I believe that the issue was fixed via https://github.com/zed-industries/zed/pull/28924 and the description here matches that of the PR. Feel free to ping me if that's not the case. Thanks!