mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 08:16:13 +03:00
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:
@ -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 = {} });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user