mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Fix bug that didn't let the magnifying glass expand horizontally using alt
This commit is contained in:
parent
c891bdf36e
commit
c25c586811
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user