Skip to content

Commit 4f4e2cc

Browse files
committed
Merged revisions 8758 via svnmerge from
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v1_0_maint ........ r8758 | mdboom | 2010-10-22 11:00:31 -0400 (Fri, 22 Oct 2010) | 2 lines [3092255] Fix the direction of scroll event in Tk backend to match other backends. ........ svn path=/trunk/matplotlib/; revision=8759
1 parent 72a37da commit 4f4e2cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/backends/backend_tkagg.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,8 @@ def scroll_event(self, event):
300300
x = event.x
301301
y = self.figure.bbox.height - event.y
302302
num = getattr(event, 'num', None)
303-
if num==4: step = -1
304-
elif num==5: step = +1
303+
if num==4: step = +1
304+
elif num==5: step = -1
305305
else: step = 0
306306

307307
FigureCanvasBase.scroll_event(self, x, y, step, guiEvent=event)

0 commit comments

Comments
 (0)