mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Use angleDelta instead of delta
This commit is contained in:
parent
986450eb20
commit
4c2d6be1ef
@ -105,7 +105,7 @@ void ComicFlow::keyPressEvent(QKeyEvent *event)
|
|||||||
|
|
||||||
void ComicFlow::wheelEvent(QWheelEvent *event)
|
void ComicFlow::wheelEvent(QWheelEvent *event)
|
||||||
{
|
{
|
||||||
if (event->delta() < 0)
|
if (event->angleDelta().y() < 0)
|
||||||
showNext();
|
showNext();
|
||||||
else
|
else
|
||||||
showPrevious();
|
showPrevious();
|
||||||
|
Loading…
Reference in New Issue
Block a user