Search Issue Tracker

Fixed in 2022.1.X

Fixed in 2021.2.X

Votes

11

Found in

2021.2.0b1

2022.1

Issue ID

1349226

Regression

Yes

[WebGL] Touch events do not work when in built Player

WebGL

-

1. Open a project that uses UI buttons, e.g., https://github.cds.internal.unity3d.com/unity/webgl-openurl-test
2. Build project for WebGL
3. Open build on a device that supports touch inputs, e.g., on a phone or use Chrome Developer Tools with device toolbar
4. Click on any UI button

Expected: The UI button is clicked and the connected event handler is triggered.
Actual: The UI button is not clicked and no event handlers are triggered.

Reproducible with: 2021.2.0b1, 2021.2.0b4, 2022.1.0a2
Not reproducible with: 2019.4.29f1, 2020.3.14f1, 2021.1.15f1, 2021.2.0a21

Comments (1)

  1. dock

    Jul 01, 2022 14:09

    WebGL Touch is not working in 2021.3.5f1. I tried the WebGL build on various browsers on Windows 10 and iPad.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.