diff --git a/vstgui/lib/cframe.cpp b/vstgui/lib/cframe.cpp index e809e95ee..2c047b062 100644 --- a/vstgui/lib/cframe.cpp +++ b/vstgui/lib/cframe.cpp @@ -667,7 +667,13 @@ void CFrame::dispatchMouseMoveEvent (MouseMoveEvent& event) if (view->asViewContainer ()) { if (auto parent = view->getParentView ()) - parent->translateToLocal (p, true); + { + if (parent != this) + { + p.offsetInverse (parent->getViewSize ().getTopLeft ()); + parent->translateToLocal (p, true); + } + } } else view->translateToLocal (p, true);