We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ef30ce commit 93ab4b7Copy full SHA for 93ab4b7
src/gui/src/clockWidget.cpp
@@ -923,9 +923,9 @@ void ClockTreeView::wheelEvent(QWheelEvent* event)
923
const auto anchor = transformationAnchor();
924
setTransformationAnchor(QGraphicsView::AnchorUnderMouse);
925
926
- if (event->delta() > 0) {
+ if (event->angleDelta().y() > 0) {
927
scale(factor, factor);
928
- } else if (event->delta() < 0) {
+ } else if (event->angleDelta().y() < 0) {
929
scale(1.0 / factor, 1.0 / factor);
930
}
931
0 commit comments