mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
ComboTabBar: Make wheel scrolling faster
This commit is contained in:
parent
2d90afc503
commit
74740ef441
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user