From fa17310dd1d2b64ef32698e21d43810cc617841c Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 26 May 2021 16:12:51 +0100 Subject: [PATCH] Added back in rounding error fix from e8518048 that was overwritten in 7909af4e --- modules/juce_gui_basics/components/juce_Component.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }