mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
more pyqt6 enum goodness
This commit is contained in:
parent
ac2a6393f9
commit
16c3e7bb00
@ -1159,7 +1159,7 @@ class GridView(QListView):
|
||||
return super().selectionCommand(index, event)
|
||||
|
||||
def wheelEvent(self, ev):
|
||||
if ev.phase() not in (Qt.ScrollPhase.ScrollUpdate, 0, Qt.ScrollPhase.ScrollMomentum):
|
||||
if ev.phase() not in (Qt.ScrollPhase.ScrollUpdate, Qt.ScrollPhase.NoScrollPhase, Qt.ScrollPhase.ScrollMomentum):
|
||||
return
|
||||
number_of_pixels = ev.pixelDelta()
|
||||
number_of_degrees = ev.angleDelta() / 8.0
|
||||
|
Loading…
x
Reference in New Issue
Block a user