summary refs log tree commit diff stats
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
parent5fb22d0e7af942c2aa7f96023c5039a8cb93f5bd (diff)
downloadranger-ab7bf8b0e87ca12c40ce575e259aeca771328ab3.tar.gz
browser: fixed scrolling
-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)
 	
pre>f027adc0 ^
5c210a96 ^

3de15ddd ^

5c210a96 ^
fb275079 ^

5c210a96 ^
3d566884 ^
e30d16cb ^
3d566884 ^
621a1a39 ^
9bc5d95c ^
c44b726e ^
465bff73 ^




f027adc0 ^
f8e96a97 ^

0b5c4cbe ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56