diff options
-rw-r--r-- | ranger/gui/widgets/browsercolumn.py | 1 | ||||
-rw-r--r-- | ranger/gui/widgets/browserview.py | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py index cca9e1f6..f392aecc 100644 --- a/ranger/gui/widgets/browsercolumn.py +++ b/ranger/gui/widgets/browsercolumn.py @@ -288,6 +288,7 @@ class BrowserColumn(Pager, Widget): # relative > 1 and you scroll from scroll_begin = 1 to 0 def scroll(self, relative): """scroll by n lines""" + self.need_redraw = True self._set_scroll_begin() old_value = self.target.scroll_begin self.target.scroll_begin += relative diff --git a/ranger/gui/widgets/browserview.py b/ranger/gui/widgets/browserview.py index 642ad198..1635cbe0 100644 --- a/ranger/gui/widgets/browserview.py +++ b/ranger/gui/widgets/browserview.py @@ -107,9 +107,9 @@ class BrowserView(Widget, DisplayableContainer): def click(self, event): n = event.ctrl() and 1 or 3 if event.pressed(4): - self.fm.scroll(relative = -n) + self.main_column.scroll(relative = -n) elif event.pressed(2) or event.key_invalid(): - self.fm.scroll(relative = n) + self.main_column.scroll(relative = n) else: DisplayableContainer.click(self, event) |