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:
GarandPLG committed 2026-03-26 21:50:39 +01:00
1 parent cc179cee03
commit 5a40760151
8 files changed
+59 -32

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ pub enum View {
SkillsConfig,
}
impl Widget for &App {
impl Widget for &mut App {
fn render(self, area: Rect, buf: &mut Buffer)
where
Self: Sized,