feat: scroll-to-bottom on output via renderer pin tracking

Co-Authored-By: Sachin <sachinbeniwal0101@gmail.com>
This commit is contained in:
benodiwal
2025-12-18 05:44:46 +05:30
committed by Mitchell Hashimoto
parent 81f537e992
commit e197b95c32
3 changed files with 41 additions and 0 deletions

View File

@@ -1070,6 +1070,14 @@ pub fn handleMessage(self: *Surface, msg: Message) !void {
.scrollbar => |scrollbar| self.updateScrollbar(scrollbar),
.scroll_to_bottom => {
self.queueIo(.{
.scroll_viewport = .{ .bottom = {} },
}, .unlocked);
},
.report_color_scheme => |force| self.reportColorScheme(force),
.present_surface => try self.presentSurface(),
.password_input => |v| try self.passwordInput(v),