MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / scroll_page_up

Method scroll_page_up

crates/opencode-tui/src/components/session.rs:989–992  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

987 }
988
989 pub fn scroll_page_up(&mut self) {
990 let step = self.messages_viewport_height.saturating_sub(1).max(1);
991 self.scroll_offset = self.scroll_offset.saturating_sub(step);
992 }
993
994 pub fn scroll_page_down(&mut self) {
995 let step = self.messages_viewport_height.saturating_sub(1).max(1);

Callers 1

handle_eventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected