1
0
Fork 0
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:
hogliux 2017-04-13 12:58:33 +01:00
parent 00e38f2ef5
commit 87a895d5a4

View file

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