(&mut self)
| 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); |