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:
parent
0f402bb81f
commit
6c720bf3f1
1 changed files with 9 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue