Commit 607db83b authored by Ingo Meyer's avatar Ingo Meyer

Reversed scrolling directions in the 3d view (for natural scroll feeling)

parent 4adb398a
......@@ -72,10 +72,10 @@ class GLWidget(QOpenGLWidget if has_qopenglwidget else QGLWidget):
rot_v = 0.1
if e.modifiers() == QtCore.Qt.ShiftModifier:
if (e.angleDelta().x() != 0) or (e.angleDelta().y() != 0):
self.vis.rotate_mouse(e.angleDelta().x() * rot_v, e.angleDelta().y() * rot_v)
self.vis.rotate_mouse(-e.angleDelta().x() * rot_v, -e.angleDelta().y() * rot_v)
else:
if e.angleDelta().y() != 0:
self.vis.zoom(e.angleDelta().y())
self.vis.zoom(-e.angleDelta().y())
QtWidgets.QApplication.postEvent(self, UpdateGLEvent())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment