mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Component: Improve the accuracy of the relative mouse position
This commit is contained in:
parent
66ad2d861a
commit
c5fbeb859d
1 changed files with 1 additions and 1 deletions
|
|
@ -2871,7 +2871,7 @@ bool JUCE_CALLTYPE Component::isMouseButtonDownAnywhere() noexcept
|
|||
|
||||
Point<int> Component::getMouseXYRelative() const
|
||||
{
|
||||
return getLocalPoint (nullptr, Desktop::getMousePosition());
|
||||
return getLocalPoint (nullptr, Desktop::getMousePositionFloat()).roundToInt();
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue