Skip to content

Commit

Permalink
[processing] fix modeleter mouse wheel zoom under qt5
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Oct 22, 2016
1 parent 3cc9b5d commit 8ee25cd
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 8ee25cd

Please sign in to comment.