Browse Source

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.
v7.0.9
attila 3 years ago
parent
commit
6c720bf3f1
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      modules/juce_gui_basics/native/juce_android_Windowing.cpp

+ 9
- 0
modules/juce_gui_basics/native/juce_android_Windowing.cpp 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)


Loading…
Cancel
Save