core: allow arrow key on scroll to fail write to IO

Fixes #625

This only applies if there is a LOT of scroll events. In that case,
clamping the scroll events to whatever our IO thread can handle seems
fine. An alternate approach is to allocate.
This commit is contained in:
Mitchell Hashimoto
2023-10-14 10:53:20 -07:00
parent 84a9339aea
commit a75d42b4a5

View File

@ -1202,7 +1202,7 @@ pub fn scrollCallback(
for (0..y.delta_unsigned) |_| { for (0..y.delta_unsigned) |_| {
_ = self.io_thread.mailbox.push(.{ _ = self.io_thread.mailbox.push(.{
.write_stable = seq, .write_stable = seq,
}, .{ .forever = {} }); }, .{ .instant = {} });
} }
} }