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

VerticalTabs - Disable tab switching when mouse is over scrollbar

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2024-09-25 23:54:31 +02:00
parent b677e0b368
commit 00e9099e95

View File

@ -164,6 +164,12 @@ void VerticalTabsWidget::wheelEvent(QWheelEvent *event)
return;
}
if ( m_normalView->verticalScrollBar()->isVisible()
&& m_normalView->verticalScrollBar()->rect().contains(event->position().toPoint())
) {
return;
}
m_wheelHelper.processEvent(event);
while (WheelHelper::Direction direction = m_wheelHelper.takeDirection()) {
switch (direction) {