Fix bug that didn't let the magnifying glass expand horizontally using alt

This commit is contained in:
Luis Ángel San Martín 2022-09-02 17:00:05 +02:00
parent c891bdf36e
commit c25c586811

View File

@ -157,8 +157,8 @@ void MagnifyingGlass::wheelEvent(QWheelEvent *event)
heightDown();
break;
// size width
case Qt::AltModifier:
if (event->angleDelta().y() < 0)
case Qt::AltModifier: // alt modifier can actually modify the behavior of the event delta, so let's check both x & y
if (event->angleDelta().y() < 0 || event->angleDelta().x() < 0)
widthUp();
else
widthDown();