diff --git a/modules/juce_gui_basics/components/juce_Component.cpp b/modules/juce_gui_basics/components/juce_Component.cpp index 81de6ef716..2dd5ebdcfd 100644 --- a/modules/juce_gui_basics/components/juce_Component.cpp +++ b/modules/juce_gui_basics/components/juce_Component.cpp @@ -2960,7 +2960,7 @@ bool Component::isMouseOver (const bool includeChildren) const auto* c = ms.getComponentUnderMouse(); if ((c == this || (includeChildren && isParentOf (c))) - && c->reallyContains (c->getLocalPoint (nullptr, ms.getScreenPosition()).roundToInt(), false) + && c->reallyContains (c->getLocalPoint (nullptr, ms.getScreenPosition().roundToInt()), false) && ((! ms.isTouch()) || ms.isDragging())) return true; }