summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-02 04:21:09 +0100
committerhut <hut@lavabit.com>2010-01-02 04:21:09 +0100
commitab7bf8b0e87ca12c40ce575e259aeca771328ab3 (patch)
tree309e70329c861c3e6c9fbfd1dcbb626c3ba17313 /ranger
parent5fb22d0e7af942c2aa7f96023c5039a8cb93f5bd (diff)
downloadranger-ab7bf8b0e87ca12c40ce575e259aeca771328ab3.tar.gz
browser: fixed scrolling
Diffstat (limited to 'ranger')
-rw-r--r--ranger/gui/widgets/browsercolumn.py1
-rw-r--r--ranger/gui/widgets/browserview.py4
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)