Fix regression that broke mouse wheel scrolling in the cover grid view in the previous release

This commit is contained in:
Kovid Goyal 2017-06-30 14:59:32 +05:30
parent 768bdc2d8e
commit adf84769f9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

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