mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -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)
|
return super(GridView, self).selectionCommand(index, event)
|
||||||
|
|
||||||
def wheelEvent(self, ev):
|
def wheelEvent(self, ev):
|
||||||
if ev.phase() not in (Qt.ScrollUpdate, Qt.NoScrollPhase):
|
if ev.phase() not in (Qt.ScrollUpdate, 0):
|
||||||
return
|
return
|
||||||
number_of_pixels = ev.pixelDelta()
|
number_of_pixels = ev.pixelDelta()
|
||||||
number_of_degrees = ev.angleDelta() / 8.0
|
number_of_degrees = ev.angleDelta() / 8.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user