mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
a4464ef292
commit
31629d5964
@ -231,10 +231,9 @@ class CoverFlow(pictureflow.PictureFlow):
|
||||
return self.minimumSize()
|
||||
|
||||
def wheelEvent(self, ev):
|
||||
d = 0
|
||||
if ev.angleDelta().x():
|
||||
if abs(ev.angleDelta().x()) > abs(ev.angleDelta().y()):
|
||||
d = ev.angleDelta().x()
|
||||
if ev.angleDelta().y():
|
||||
else:
|
||||
d = ev.angleDelta().y()
|
||||
if abs(d) > 0:
|
||||
ev.accept()
|
||||
|
Loading…
x
Reference in New Issue
Block a user