1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-21 01:24:21 +00:00

Android: Add simulated mouse exit event to the mouse up callback

Without this event Components such as Button would remain in a hover
state indefinitely after being clicked on a touch screen. The simulated
event matches the behaviour of the other platforms.
This commit is contained in:
attila 2023-01-12 19:08:11 +01:00
parent 0f402bb81f
commit 6c720bf3f1

View file

@ -1489,6 +1489,15 @@ public:
time,
{},
index);
handleMouseEvent (MouseInputSource::InputSourceType::touch,
MouseInputSource::offscreenMousePos,
ModifierKeys::currentModifiers.withoutMouseButtons(),
MouseInputSource::defaultPressure,
MouseInputSource::defaultOrientation,
time,
{},
index);
}
void handleAccessibilityHoverCallback (int command, Point<float> sysPos, int64)