Repository navigation
Autoscroll correctly when dragging gutter selections - #8350
Conversation
0c50bf0 to
aa31450
Compare
* Explicitly assign the orientation of the selection when it crosses the initially clicked row. * Autoscroll to the cursor, not the entire selection.
aa31450 to
fbea2d7
Compare
Autoscroll correctly when dragging gutter selections
|
👏 Thanks for fixing this, @nathansobo. I was just playing with this and noticed that the problem still happens if you press and hold |
|
I can do a followup. |
|
@atom/feedback As I tested this, I also noticed that selecting with the mouse in the gutter selects entire buffer lines instead of screen lines. This feels a bit counter-intuitive to me and leads to the selections feeling jumpy instead of smooth. What would people think about always selecting screen lines in the gutter? |
👍 This would make the most sense to me too |
Ahhh, just noticed this comment -- sorry, @nathansobo, I left a note in your PR: #8377 (comment). Would love to hear more thoughts on this and also how other editors behave. |
|
I would suggest using screen lines in the case of soft wrap, but in the case of folding, it should use buffer lines. |
Fixes #2696