MCPcopy Create free account
hub / github.com/encounter/objdiff / page_up

Method page_up

objdiff-cli/src/views/function_diff.rs:498–500  ·  view source on GitHub ↗
(&mut self, half: bool)

Source from the content-addressed store, hash-verified

496 }
497
498 fn page_up(&mut self, half: bool) {
499 self.scroll_y = self.scroll_y.saturating_sub(self.per_page / if half { 2 } else { 1 });
500 }
501
502 fn page_down(&mut self, half: bool) {
503 self.scroll_y += self.per_page / if half { 2 } else { 1 };

Callers 1

handle_eventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected