Search Issue Tracker
Fixed
Votes
2
Found in
2021.3.33f1
2022.3.15f1
2023.2.4f1
2023.3.0a18
6000.0.0b11
7000.0.0a1
Issue ID
UUM-58712
Regression
No
[Android] "Back" button state does not update when using Swipe Gestures
Reproduction steps:
1. Open the attached “Android-Back-Key-Test” project
2. In Editor, enter the Play Mode
3. Press the ESC key
4. Observe that the Back key state resets after releasing the ESC key
5. On an Android device, set the Navigation bar type to Buttons
6. Build and run on an Android device
7. Click the “Back” key
8. Observe that the “Back” key state resets after releasing the Back key
9. Exit the application
10. Set the Navigation bar type to Swipe gestures
11. Run the application
12. Swipe up for the “Back” gestures
13. Observe that the “Back” key state does not reset, and stays stuck as if holding the “Back” key
Expected result: The “Back” key state should reset to “Up” after releasing the Back swipe gesture
Actual result: The “Back” key state stays stuck on “Down” after releasing the Back swipe gesture
Reproducible with: 2021.3.33f1, 2022.3.15f1, 2023.2.4f1, 2023.3.0a18
Reproducible on these devices:
VLNQA00376, Samsung - (SM-G996U), Android 11, CPU: Snapdragon 888, GPU: Adreno (TM) 660
VLNQA00519 Google Pixel 4, Android 12, CPU: Snapdragon 855, GPU: Adreno (TM) 640
VLNQA00175 Samsung Galaxy Note9, Android 10, CPU: Exynos 9 (9810), GPU: Mali-G72
Xiaomi Poco F3 (User device)
Testing environment: Ubuntu 23.10, Windows 11 Pro 23H2
Note: If the key state does not change at all and stays at “Up”, use the “Back” swipe gesture until it changes to “Down”
-
PrishaUnity
Feb 20, 2024 11:09
Hi Moe,
After some investigation, we found that this bug is related to a known issue to do with the new Input System, and is being caused due to Android back gesture press/release events occurring on the same frame intentionally.We are waiting on more information regarding the discussions surrounding the input bug, as the decision will affect or maybe fix this bug.
The input bug in question isn't public and does not have an issue tracker, but here is another bug that is affected by the same issue that you can follow to keep up to date with new information - https://issuetracker.unity3d.com/issues/android-button-is-still-recognised-as-pressed-after-releasing-when-using-inputcontrol-dot-ispressed-with-active-input-handling-set-to-both.
-
Moe_Baker
Jan 25, 2024 13:02
Any update on this bug? been a while
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Radio Button" disappears when added under the "RadioButtonGroup" and the parent Visual Element is selected
- ScrollView Scrollbar is jittering when Movement Type "Elastic" is selected and a mouse with a freewheel is used
- [WebGL]"TypeError: Cannot read properties of undefined (reading 'length')" error is thrown when starting the Player when config.autoSyncPersistentDataPath is set to true
- [UaaL] Freeze on "GetLightingSettingsOrDefaultsFallback()" when rotating device screen after unloading Unity framework
- A white vertical artifact is present when any Material from HDRI is used for a panoramic skybox
Resolution Note:
Fixed by another internal issue: ISXB-491: [Android] Input System package ignores consequent adb shell input keyevent KEYCODE_* events