summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Hashimoto <m@mitchellh.com>2025-09-16 16:32:38 -0700
committerMitchell Hashimoto <m@mitchellh.com>2025-09-16 16:33:49 -0700
commit4f47138ea35406348b446aec9ec5bdf8ea720815 (patch)
tree30871288f54c36f4d1963d88055bf7d618cd4687
parenta0988167098aa2a48f8c80fa3ccfa0240763c0f0 (diff)
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.
-rw-r--r--src/Surface.zig2
1 files changed, 1 insertions, 1 deletions
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,