mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-15 03:22:11 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( m_normalView->verticalScrollBar()->isVisible()
|
||||||
|
&& m_normalView->verticalScrollBar()->rect().contains(event->position().toPoint())
|
||||||
|
) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
m_wheelHelper.processEvent(event);
|
m_wheelHelper.processEvent(event);
|
||||||
while (WheelHelper::Direction direction = m_wheelHelper.takeDirection()) {
|
while (WheelHelper::Direction direction = m_wheelHelper.takeDirection()) {
|
||||||
switch (direction) {
|
switch (direction) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user