mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix momentum scrolling not working in the cover grid
This commit is contained in:
parent
eac6acb82a
commit
f87bd0f2c3
@ -1148,7 +1148,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, 0):
|
if ev.phase() not in (Qt.ScrollUpdate, 0, Qt.ScrollMomentum):
|
||||||
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