Fix momentum scrolling not working in the cover grid

This commit is contained in:
Kovid Goyal 2020-09-10 18:23:06 +05:30
parent eac6acb82a
commit f87bd0f2c3
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1148,7 +1148,7 @@ class GridView(QListView):
return super(GridView, self).selectionCommand(index, event)
def wheelEvent(self, ev):
if ev.phase() not in (Qt.ScrollUpdate, 0):
if ev.phase() not in (Qt.ScrollUpdate, 0, Qt.ScrollMomentum):
return
number_of_pixels = ev.pixelDelta()
number_of_degrees = ev.angleDelta() / 8.0