Merge pull request #219 from rabryan/wheel-event-ignore
Ignore wheel events in GraphicsView if mouse disabled
This commit is contained in:
commit
215b39a59d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user