Commit 303740c6 authored by Eduard Manta's avatar Eduard Manta

Fix vertical scroll with horizontal component not being recognized properly

BUG: 430532

a scroll that includes an horizontal component != 0 might still be a vertical scroll
parent 125c7aba
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment