Skip to content

Commit

Permalink
Remove unnecessary diff
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Aug 2, 2024
1 parent 5bd4d67 commit 33aa0d5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions labelme/widgets/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -937,11 +937,9 @@ def wheelEvent(self, ev):
else:
self.scrollRequest.emit(
ev.delta(),
(
QtCore.Qt.Horizontal
if (QtCore.Qt.ShiftModifier == int(mods))
else QtCore.Qt.Vertical
),
QtCore.Qt.Horizontal
if (QtCore.Qt.ShiftModifier == int(mods))
else QtCore.Qt.Vertical,
)
else:
self.scrollRequest.emit(ev.delta(), QtCore.Qt.Horizontal)
Expand Down

0 comments on commit 33aa0d5

Please sign in to comment.