diff --git a/modules/juce_gui_basics/components/juce_Component.cpp b/modules/juce_gui_basics/components/juce_Component.cpp index 3bd78925da..55cc425ffd 100644 --- a/modules/juce_gui_basics/components/juce_Component.cpp +++ b/modules/juce_gui_basics/components/juce_Component.cpp @@ -3022,7 +3022,7 @@ bool Component::isMouseOver (bool includeChildren) const if (c != nullptr && (c == this || (includeChildren && isParentOf (c)))) if (ms.isDragging() || ! (ms.isTouch() || ms.isPen())) - if (c->reallyContains (c->getLocalPoint (nullptr, ms.getScreenPosition()).roundToInt(), false)) + if (c->reallyContains (c->getLocalPoint (nullptr, ms.getScreenPosition().roundToInt()), false)) return true; }