Revert "ignore wheel events in GraphicsView if mouse disabled"

This reverts commit f49c179275.

On Qt 5.7 ignoring the initial `wheelEvent` when `phase() ==
Qt.ScrollBegin` suppresses all intermediate events (`Qt.ScrollUpdate`)
from being delivered to the view. This makes ViewBox zooming
unresponsive.
This commit is contained in:
Ales Erjavec 2016-11-10 11:22:52 +01:00
parent 1426e334e1
commit 0bc711b31f

View File

@ -325,7 +325,6 @@ 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