core: alternate scroll only sends up/down arrows, not left/right

This commit is contained in:
Mitchell Hashimoto
2023-10-07 14:26:39 -07:00
parent d85baa4631
commit f640fbc394

View File

@ -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 // After sending all our messages we have to notify our IO thread
try self.io_thread.wakeup.notify(); try self.io_thread.wakeup.notify();
return; return;