1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

ComboTabBar: Make wheel scrolling faster

This commit is contained in:
David Rosca 2017-01-27 15:43:21 +01:00
parent 2d90afc503
commit 74740ef441

View File

@ -1528,7 +1528,7 @@ void TabBarScrollWidget::scrollByWheel(QWheelEvent* event)
}
// Fast scrolling with just wheel scroll
int factor = qMax(m_scrollBar->pageStep() / 3, m_scrollBar->singleStep());
int factor = qMax(qRound(m_scrollBar->pageStep() / 1.5), m_scrollBar->singleStep());
if ((event->modifiers() & Qt::ControlModifier) || (event->modifiers() & Qt::ShiftModifier)) {
factor = m_scrollBar->pageStep();
}