┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Graham <[email protected]>2020-12-23 11:40:09 -0700
committerNate Graham <[email protected]>2020-12-23 11:40:09 -0700
commit9abe299c77a7bd194d781bba0e6a3d037c0431d1 (patch)
tree31f3005cc66cbb9aadc0f6e6ce634e15313f3145
parent7f44b11a5e9aba96586f75fbcb3256573e50ffd8 (diff)
parent303740c68af83f45be1bdea56a250397a83efa6a (diff)
Merge branch 'release/20.12'
-rw-r--r--src/kitemviews/kitemlistcontainer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kitemviews/kitemlistcontainer.cpp b/src/kitemviews/kitemlistcontainer.cpp
index 77847bcc7..f253cda53 100644
--- a/src/kitemviews/kitemlistcontainer.cpp
+++ b/src/kitemviews/kitemlistcontainer.cpp
@@ -172,8 +172,8 @@ void KItemListContainer::wheelEvent(QWheelEvent* event)
return;
}
- const bool scrollHorizontally = (event->angleDelta().x() != 0) ||
- (event->angleDelta().y() != 0 && !verticalScrollBar()->isVisible());
+ const bool scrollHorizontally = (qAbs(event->angleDelta().y()) < qAbs(event->angleDelta().x())) ||
+ (!verticalScrollBar()->isVisible());
KItemListSmoothScroller* smoothScroller = scrollHorizontally ?
m_horizontalSmoothScroller : m_verticalSmoothScroller;