From 00e9099e956d1493a79aefd22ae10cc37c690103 Mon Sep 17 00:00:00 2001 From: Juraj Oravec Date: Wed, 25 Sep 2024 23:54:31 +0200 Subject: [PATCH] VerticalTabs - Disable tab switching when mouse is over scrollbar Signed-off-by: Juraj Oravec --- src/plugins/VerticalTabs/verticaltabswidget.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/VerticalTabs/verticaltabswidget.cpp b/src/plugins/VerticalTabs/verticaltabswidget.cpp index 6d78dc78b..6d35cb751 100644 --- a/src/plugins/VerticalTabs/verticaltabswidget.cpp +++ b/src/plugins/VerticalTabs/verticaltabswidget.cpp @@ -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) {