Update QWheelEvent delta usage

This commit is contained in:
Luis Ángel San Martín
2021-10-01 20:07:14 +02:00
parent 1c144d950d
commit 740eab5025
3 changed files with 10 additions and 10 deletions

View File

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