editors/Viewer.py
changeset 2521 48ebcbe7f19b
parent 2494 a30dfc8a0c29
child 2555 5dce99e69027
--- a/editors/Viewer.py	Mon Mar 11 09:18:58 2019 +0100
+++ b/editors/Viewer.py	Mon Mar 11 13:51:07 2019 +0100
@@ -3665,7 +3665,7 @@
 
     def OnMouseWheelWindow(self, event):
         if self.StartMousePos is None or self.StartScreenPos is None:
-            rotation = event.GetWheelRotation() / event.GetWheelDelta()
+            rotation = event.GetWheelRotation() // event.GetWheelDelta()
             if event.ShiftDown():
                 x, y = self.GetViewStart()
                 xp = max(0, min(x - rotation * 3, self.Editor.GetVirtualSize()[0] / self.Editor.GetScrollPixelsPerUnit()[0]))