mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-06-07 06:25:26 -04:00
Fix regression that broke mouse wheel scrolling in the cover grid view in the previous release
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user