diff --git a/src/Gui/OverlayManager.cpp b/src/Gui/OverlayManager.cpp index a10e4b1949..5cb79b4eb1 100644 --- a/src/Gui/OverlayManager.cpp +++ b/src/Gui/OverlayManager.cpp @@ -1947,6 +1947,13 @@ void OverlayManager::Private::interceptEvent(QWidget *widget, QEvent *ev) QPoint globalPos = we->globalPosition().toPoint(); #endif lastIntercept = getChildAt(widget, globalPos); + + for (auto parent = lastIntercept->parentWidget(); parent; parent = parent->parentWidget()) { + if (qobject_cast(parent)) { + lastIntercept = parent; + } + } + #if QT_VERSION >= QT_VERSION_CHECK(5,12,0) QWheelEvent wheelEvent(lastIntercept->mapFromGlobal(globalPos), globalPos,