(&mut self, half: bool)
| 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 }; |