From 4f47138ea35406348b446aec9ec5bdf8ea720815 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 16 Sep 2025 16:32:38 -0700 Subject: [PATCH] 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. --- src/Surface.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Surface.zig b/src/Surface.zig index ec6ec96a3..8edeadf83 100644 --- a/src/Surface.zig +++ b/src/Surface.zig @@ -4012,7 +4012,7 @@ pub fn cursorPosCallback( // Stop selection scrolling when inside the viewport within a 1px buffer // 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( .{ .selection_scroll = false }, .locked,