selection scrolling should only depend on y value

Fixes #8683

The selection scrolling logic should only depend on the y value of the
cursor position, not the x value. This presents unwanted scroll
behaviors, such as reversing the scroll direction which was just a side
effect of attempting to scroll tick to begin with.
pull/8686/head
Mitchell Hashimoto 2025-09-16 16:32:38 -07:00
parent a098816709
commit 4f47138ea3
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 1 additions and 1 deletions

View File

@ -4012,7 +4012,7 @@ pub fn cursorPosCallback(
// Stop selection scrolling when inside the viewport within a 1px buffer // Stop selection scrolling when inside the viewport within a 1px buffer
// for fullscreen windows, but only when selection scrolling is active. // for fullscreen windows, but only when selection scrolling is active.
if (pos.x >= 1 and pos.y >= 1 and self.selection_scroll_active) { if (pos.y >= 1 and self.selection_scroll_active) {
self.io.queueMessage( self.io.queueMessage(
.{ .selection_scroll = false }, .{ .selection_scroll = false },
.locked, .locked,