Skip to content

Commit 0f0a61c

Browse files
authored
selection scrolling should only depend on y value (ghostty-org#8686)
Fixes ghostty-org#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.
2 parents a098816 + 4f47138 commit 0f0a61c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Surface.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4012,7 +4012,7 @@ pub fn cursorPosCallback(
40124012

40134013
// Stop selection scrolling when inside the viewport within a 1px buffer
40144014
// for fullscreen windows, but only when selection scrolling is active.
4015-
if (pos.x >= 1 and pos.y >= 1 and self.selection_scroll_active) {
4015+
if (pos.y >= 1 and self.selection_scroll_active) {
40164016
self.io.queueMessage(
40174017
.{ .selection_scroll = false },
40184018
.locked,

0 commit comments

Comments
 (0)