Use angleDelta

pixelDelta is only provided in systems that support it
This commit is contained in:
Luis Ángel San Martín
2021-10-01 20:23:20 +02:00
parent 052e7ffba0
commit ae43f23c85
3 changed files with 12 additions and 10 deletions

View File

@ -195,7 +195,7 @@ void GoToFlow::updateImageData()
void GoToFlow::wheelEvent(QWheelEvent *event)
{
if (event->pixelDelta().y() < 0)
if (event->angleDelta().y() < 0)
flow->showNext();
else
flow->showPrevious();