From e8518048b4d67b213a41c306d14f8b5975fa3fa1 Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 17 Nov 2017 16:22:48 +0000 Subject: [PATCH] Fixed a rounding error in Component::isMouseOver --- 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 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; }