mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Merge branch 'release/20.12'
This commit is contained in:
commit
9abe299c77
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue