mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Another place that needed fixing for the scroll event phase change in Qt 5.7
This commit is contained in:
parent
57c3a2d6af
commit
4371f8582e
@ -982,7 +982,8 @@ class GridView(QListView):
|
||||
return super(GridView, self).selectionCommand(index, event)
|
||||
|
||||
def wheelEvent(self, ev):
|
||||
if ev.phase() != Qt.ScrollUpdate:
|
||||
if ev.phase() not in (Qt.ScrollUpdate, 0):
|
||||
# 0 is Qt.NoScrollPhase which is not yet available in PyQt
|
||||
return
|
||||
number_of_pixels = ev.pixelDelta()
|
||||
number_of_degrees = ev.angleDelta() / 8
|
||||
|
Loading…
x
Reference in New Issue
Block a user