mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-18 00:54:19 +00:00
Fixed an OSX plugin build error.
This commit is contained in:
parent
a0bcb86e08
commit
20020a83fe
1 changed files with 2 additions and 2 deletions
|
|
@ -48,10 +48,10 @@ public:
|
|||
const ModifierKeys mods (ModifierKeys::getCurrentModifiers());
|
||||
|
||||
if (! mods.isAnyMouseButtonDown())
|
||||
if (Component* const comp = Desktop::getInstance().findComponentAt (screenPos))
|
||||
if (Component* const comp = Desktop::getInstance().findComponentAt (screenPos.roundToInt()))
|
||||
if (ComponentPeer* const peer = comp->getPeer())
|
||||
if (! peer->isFocused())
|
||||
peer->handleMouseEvent (0, peer->globalToLocal (screenPos.toFloat()), mods, Time::currentTimeMillis());
|
||||
peer->handleMouseEvent (0, peer->globalToLocal (screenPos), mods, Time::currentTimeMillis());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue