generated from GarandPLG/rust-flake-template
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:
1 parent
cc179cee03
commit
5a40760151
8 files changed
+59
-32
No files matched your search
+1
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user