Merge pull request #219 from rabryan/wheel-event-ignore

Ignore wheel events in GraphicsView if mouse disabled
This commit is contained in:
Luke Campagnola 2015-12-20 21:14:11 -08:00
commit 215b39a59d

View File

@ -324,6 +324,7 @@ class GraphicsView(QtGui.QGraphicsView):
def wheelEvent(self, ev):
QtGui.QGraphicsView.wheelEvent(self, ev)
if not self.mouseEnabled:
ev.ignore()
return
sc = 1.001 ** ev.delta()
#self.scale *= sc