From 511d380da8e198c01cd73fe9da35d557584a0023 Mon Sep 17 00:00:00 2001 From: lukeflo Date: Fri, 15 Nov 2024 15:56:57 +0100 Subject: selection popup: not impl as trait... --- src/app.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/app.rs') diff --git a/src/app.rs b/src/app.rs index 3268649..6163ae3 100644 --- a/src/app.rs +++ b/src/app.rs @@ -141,6 +141,8 @@ impl App { CurrentArea::PopupArea => { if let Some(PopupKind::Help) = self.bibiman.popup_area.popup_kind { self.bibiman.popup_area.popup_scroll_down(); + } else if let Some(PopupKind::Selection) = self.bibiman.popup_area.popup_kind { + self.bibiman.popup_area.popup_state.scroll_down_by(1) } } _ => {} @@ -156,6 +158,8 @@ impl App { CurrentArea::PopupArea => { if let Some(PopupKind::Help) = self.bibiman.popup_area.popup_kind { self.bibiman.popup_area.popup_scroll_up(); + } else if let Some(PopupKind::Selection) = self.bibiman.popup_area.popup_kind { + self.bibiman.popup_area.popup_state.scroll_up_by(1) } } _ => {} -- cgit v1.2.3