Skip to content

Commit

Permalink
fix: repaint on scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
atty303 committed Jan 2, 2023
1 parent 86fe2e3 commit 3c8bce4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,14 @@ impl UiState {
if let Some(group) = self.windows.get_mut(self.focused_window_index) {
group.scroll_up();
}
self.repaint = true;
}

pub fn scroll_down(&mut self) {
if let Some(group) = self.windows.get_mut(self.focused_window_index) {
group.scroll_down();
}
self.repaint = true;
}

pub fn render_to_screen(&mut self, screen: &mut Surface) {
Expand Down

0 comments on commit 3c8bce4

Please sign in to comment.