From f640fbc39499544208497bcf91b8fd17ec33dbc0 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 7 Oct 2023 14:26:39 -0700 Subject: [PATCH] core: alternate scroll only sends up/down arrows, not left/right --- src/Surface.zig | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/Surface.zig b/src/Surface.zig index 2d448216e..e6cd409f3 100644 --- a/src/Surface.zig +++ b/src/Surface.zig @@ -1195,15 +1195,6 @@ pub fn scrollCallback( } } - if (x.delta_unsigned > 0) { - const seq = if (x.delta < 0) "\x1bOC" else "\x1bOD"; - for (0..x.delta_unsigned) |_| { - _ = self.io_thread.mailbox.push(.{ - .write_stable = seq, - }, .{ .forever = {} }); - } - } - // After sending all our messages we have to notify our IO thread try self.io_thread.wakeup.notify(); return;