Search Issue Tracker
Duplicate
Votes
0
Found in
2021.2
2021.2.0b1
2022.1
Issue ID
1345789
Regression
No
[WebGL][Android][Touchscreen] Input.GetTouch returns (0, screenHeight) for every touch on touchscreen devices
Reproduction steps:
1. Open the attached user's project "2021.2.zip"
2. Build the project for WebGL
3. Rotate the view of the object in the browser on a device with a touchscreen
4. Notice that the touch cursor is not updated and they appear in the top left corner
Expected result: Input.GetTouch does not return 0 value when performing a touch action on a touchscreen device
Actual result: Input.GetTouch returns (0, screenHeight) for every touch on touchscreen devices (See attached Results.mp4)
Reproduces on: 2021.2.0b3, 2022.1.0a2
Could not test on 2019.4.29f1, 2020.3.14f1 and 2021.1.15f1 due to the project breaking when downgrading
Reproducible with these devices:
Windows Touch Screen
N/a, Samsung Galaxy S9 (SM-G960F), Android 8.0.0, CPU: Exynos 9 Series 9810, GPU: Mali-G72
VLNQA00002, Samsung S5 Neo LTE (SM-G903F), Android 6.0.1, CPU: Exynos 7 Octa 7580, GPU: Mali-T720
VLNQA00318, Oneplus 7Pro (GM1913), Android 10, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640
VLNQA00231, Huawei HUAWEI Mate 20 Pro (LYA-L29), Android 9, CPU: HiSilicon Kirin 980, GPU: Mali-G76
VLNQA00366, Samsung Galaxy Z Fold2 5G (SM-F916U), Android 10, CPU: Snapdragon 865 SM8250, GPU: Adreno (TM) 650
Notes:
-Issue does not reproduce in the Editor
-On Android WebGL you can actually notice that the cursor position is different for a brief moment but then the cursor moves to the top left corner
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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
This is a duplicate of issue #1349226