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:
parent
1426e334e1
commit
0bc711b31f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user