Browse Source

Added back in rounding error fix from e8518048 that was overwritten in 7909af4e

v6.1.6
ed 4 years ago
parent
commit
fa17310dd1
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

@@ -3022,7 +3022,7 @@ bool Component::isMouseOver (bool includeChildren) const
if (c != nullptr && (c == this || (includeChildren && isParentOf (c)))) if (c != nullptr && (c == this || (includeChildren && isParentOf (c))))
if (ms.isDragging() || ! (ms.isTouch() || ms.isPen())) 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; return true;
} }


Loading…
Cancel
Save