Skip to content

Commit 807d72f

Browse files
authored
Merge pull request #6124 from PrimozGodec/midbutton
[FIX] plotutils - replace MidButton with MiddleButton
2 parents fd70c60 + 4afa51a commit 807d72f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Orange/widgets/visualize/utils/plotutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def zoom():
244244
# uses mapRectFromParent. We don't want to copy the parts of the
245245
# method that work, hence we only use our code under the following
246246
# conditions.
247-
if ev.button() & (Qt.LeftButton | Qt.MidButton) \
247+
if ev.button() & (Qt.LeftButton | Qt.MiddleButton) \
248248
and self.state['mouseMode'] == pg.ViewBox.RectMode \
249249
and ev.isFinish():
250250
zoom()

0 commit comments

Comments
 (0)