Unity Issue Tracker - The Mouse click Action Phase is set to "Canceled" when the Cursor is locked and the Mouse is moved with the Left Mouse click held in a WebGL build
Fixed
UUM-65367
The Mouse click Action Phase is set to "Canceled" when the Cursor is locked and the Mouse is moved with the Left Mouse click held in a WebGL build
Thank you for taking the time to report this issue. After investigating, the engineering team determined this was a legitimate bug which has been fixed.
How to reproduce
1. Open the “WebGLPhaseBug.zip“ project
2. Go to “Build Settings…” in the “File” tools
3. Enable the “Development Build“ checkbox
4. Click the "Build And Run” button
5. After building and running the Player, open the Web Developer Tools panel in the browser (F12)
6. Click and hold the Left Mouse Button in the Game view
7. While holding the Left Mouse Button, move the Mouse
8. Observe the Console in the Web Developer Tools panel
Expected results: The Action Phase gets assigned the status “Canceled“ on the Left Mouse Button release
Actual results: The Action Phase gets assigned the status “Canceled“ when the Mouse is moved
Reproducible in: 2021.3.35f1, 2022.3.20f1, 2023.3.0b9
Could not test in: 2023.2.12f1 (NullRefferenceException Errors in the RenderPipeline while building)
Reproduced on: Windows 11 Pro (23H2)
Not reproduced on: No other environment tested
Note: Reproducible in the WebGL Player only
Prioritise and Follow this issue
Have a workaround or additional info about this issue?