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:
parent
b677e0b368
commit
00e9099e95
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user