Browse Source

Fixed a rounding error in Component::isMouseOver

tags/2021-05-28
ed 7 years ago
parent
commit
e8518048b4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_gui_basics/components/juce_Component.cpp

+ 1
- 1
modules/juce_gui_basics/components/juce_Component.cpp View File

@@ -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;
}


Loading…
Cancel
Save