From 4c2d6be1ef5a3708cf10d8f5472788cb41025ba7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Thu, 7 Oct 2021 21:49:24 +0200 Subject: [PATCH] Use angleDelta instead of delta --- YACReaderLibrary/comic_flow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YACReaderLibrary/comic_flow.cpp b/YACReaderLibrary/comic_flow.cpp index 4f56afd8..931aae93 100644 --- a/YACReaderLibrary/comic_flow.cpp +++ b/YACReaderLibrary/comic_flow.cpp @@ -105,7 +105,7 @@ void ComicFlow::keyPressEvent(QKeyEvent *event) void ComicFlow::wheelEvent(QWheelEvent *event) { - if (event->delta() < 0) + if (event->angleDelta().y() < 0) showNext(); else showPrevious();