Skip to content

Commit feb143a

Browse files
committed
[3092255] Fix the direction of scroll event in Tk backend to match other backends.
svn path=/branches/v1_0_maint/; revision=8758
1 parent 0c2620c commit feb143a

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
@@ -312,8 +312,8 @@ def scroll_event(self, event):
312312
x = event.x
313313
y = self.figure.bbox.height - event.y
314314
num = getattr(event, 'num', None)
315-
if num==4: step = -1
316-
elif num==5: step = +1
315+
if num==4: step = +1
316+
elif num==5: step = -1
317317
else: step = 0
318318

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

0 commit comments

Comments
 (0)