Skip to content
Permalink
Browse files

Merge pull request #3658 from nirvn/processing_modeler_mousewheel

[processing] fix modeleter mouse wheel zoom under qt5
  • Loading branch information
alexbruy committed Oct 24, 2016
2 parents bb9e276 + 8ee25cd commit 72229c1c2bc407b66838d9fb0e53f90f9f2e333f
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/modeler/ModelerDialog.py
@@ -111,7 +111,7 @@ def _dragMoveEvent(event):
def _wheelEvent(event):
self.view.setTransformationAnchor(QGraphicsView.AnchorUnderMouse)
factor = 1.05
if event.delta() > 0:
if event.angleDelta().y() > 0:
factor = 1 / factor
self.view.scale(factor, factor)
self.repaintModel()

0 comments on commit 72229c1

Please sign in to comment.
You can’t perform that action at this time.