mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Fix regression that broke mouse wheel scrolling in the cover grid view in the previous release
This commit is contained in:
parent
768bdc2d8e
commit
adf84769f9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user