mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-04 03:40:07 +00:00
Added a check to send fake mouse move events only if the current mouse cursor's position could have an effect on mouseEnter/mouseLeve events
This commit is contained in:
parent
00e38f2ef5
commit
87a895d5a4
1 changed files with 2 additions and 1 deletions
|
|
@ -2630,8 +2630,9 @@ void Component::internalMagnifyGesture (MouseInputSource source, Point<float> re
|
|||
void Component::sendFakeMouseMove() const
|
||||
{
|
||||
MouseInputSource mainMouse = Desktop::getInstance().getMainMouseSource();
|
||||
const Component* compUnderMouse = mainMouse.getComponentUnderMouse();
|
||||
|
||||
if (! mainMouse.isDragging())
|
||||
if ((! mainMouse.isDragging()) && (compUnderMouse == this || isParentOf (compUnderMouse)))
|
||||
mainMouse.triggerFakeMove();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue