This commit is contained in:
Kovid Goyal 2023-05-26 15:51:39 +05:30
parent a4464ef292
commit 31629d5964
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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()