Search Issue Tracker
Fixed in 5.4.0
Votes
1
Found in
5.2.2f1
Issue ID
740182
Regression
No
[WebGL] Chrome/Safari/Edge itself reacts to arrow keys even WebGL content is active
-what happened: Inconsistent behaviour between Chrome/Safari/Edge and Firefox when pressing Up/Down/left/right arrow keys. When there is a scroll bar the sphere object will move up/down when pressing Up/Down arrow keys, however, in Chrome/safari/Edge that will also make the webpage scroll.
Chrome/Safari/Edge: Up/Down/left/right arrow keypresses are handled by both Unity and browser
Firefox: Up/Down/left/right arrow keypresses are only handled by Unity
-repro:
--Build and Run for WebGL (see new attached move script)
--resize browser so you have the content tab with a horizontal and/or vertical scroll bar
--press up/down/left/right keys
--NOTICE when running in Chrome/Safari/Edge the sphere and the page itself move up and down
There is also a forum thread here:
http://forum.unity3d.com/threads/browser-input-working-together-with-webgl.363398/
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
- Crash on mecanim::SetValueWeight when switching the AnimationMixerPlayable connection with Animator's UpdateMode set to "Animate Physics"
- The "StringComparer.InvariantCultureIgnoreCase.GetHashCode()" returns different Hash Codes for the same word with the only difference being case sensitivity in WebGL
- 2D Light Textures show the lights of any 'blend style' index higher than theirs (if present) when they aren't visible by the Camera using Render Graph
- [SpeedTree] Wireframe mode not rendering correctly ST assets
- Light2D affecting only the Default Sorting Layer will also affect any Custom Lit Sprite not on that Layer when using Render Graph
pdenton
Dec 13, 2015 20:18
This issue is still present in WebGL builds done in Unity 5.3.0.