From f49c179275e86786af70b38b8c5085e38d4e6cce Mon Sep 17 00:00:00 2001 From: Richard Bryan Date: Tue, 25 Aug 2015 10:06:39 -0400 Subject: [PATCH] ignore wheel events in GraphicsView if mouse disabled - this allows parent dialogs to receive these events if they need to --- pyqtgraph/widgets/GraphicsView.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyqtgraph/widgets/GraphicsView.py b/pyqtgraph/widgets/GraphicsView.py index 4062be94..06015e44 100644 --- a/pyqtgraph/widgets/GraphicsView.py +++ b/pyqtgraph/widgets/GraphicsView.py @@ -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