Skip to content

Commit

Permalink
Merge pull request #3658 from nirvn/processing_modeler_mousewheel
Browse files Browse the repository at this point in the history
[processing] fix modeleter mouse wheel zoom under qt5
  • Loading branch information
alexbruy committed Oct 24, 2016
2 parents bb9e276 + 8ee25cd commit 72229c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/modeler/ModelerDialog.py
Expand Up @@ -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()
Expand Down

0 comments on commit 72229c1

Please sign in to comment.