From 6a460d9600e8935bc0fb2b4bb0d81f4a42e90c0d Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 18 Jan 2024 15:57:49 +0100 Subject: [PATCH] Fixed ILB scrolling --- .../additional_urwid_widgets/widgets/indicative_listbox.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nomadnet/vendor/additional_urwid_widgets/widgets/indicative_listbox.py b/nomadnet/vendor/additional_urwid_widgets/widgets/indicative_listbox.py index d4f18dc..9797319 100644 --- a/nomadnet/vendor/additional_urwid_widgets/widgets/indicative_listbox.py +++ b/nomadnet/vendor/additional_urwid_widgets/widgets/indicative_listbox.py @@ -269,11 +269,13 @@ def mouse_event(self, size, event, button, col, row, focus): # mousewheel up elif button == 4.0: - was_handeled = self._pass_key_to_contained_listbox(modified_size, "page up") + # was_handeled = self._pass_key_to_contained_listbox(modified_size, "page up") + was_handeled = self._pass_key_to_contained_listbox(modified_size, "up") # mousewheel down elif button == 5.0: - was_handeled = self._pass_key_to_contained_listbox(modified_size, "page down") + # was_handeled = self._pass_key_to_contained_listbox(modified_size, "page down") + was_handeled = self._pass_key_to_contained_listbox(modified_size, "down") focus_position_after_input = self.get_selected_position()