Replace scrollbar state with simple offset struct

Introduce Offset type to track scroll positions and replace
ScrollbarState fields in SkirmishState
Update keybindings, App::draw, Widget impl, and BoardWidget::new
to use mutable references and the new Offset struct.
Adjust imports accordingly.
This commit is contained in:
2026-03-26 21:50:39 +01:00
parent cc179cee03
commit 5a40760151
8 changed files with 59 additions and 32 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ impl App {
Ok(())
}
fn draw(&self, frame: &mut Frame<'_>) {
fn draw(&mut self, frame: &mut Frame<'_>) {
frame.render_widget(self, frame.area());
}