# HTML5 cursor outside game window after being shown when changing to new UI panel

**URL:** <https://forums.unrealengine.com/t/html5-cursor-outside-game-window-after-being-shown-when-changing-to-new-ui-panel/657792>\
**Category:** UI\
**Tags:** UE4-22, unreal-engine, Widget, question, Blueprint\
**Created:** [September 27, 2022, 10:27pm UTC](https://forums.unrealengine.com/t/html5-cursor-outside-game-window-after-being-shown-when-changing-to-new-ui-panel/657792 "2022-09-27T22:27:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soul\_Gatherer1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Soul\_Gatherer1](https://forums.unrealengine.com/u/Soul_Gatherer1)\
**Post date:** [September 27, 2022, 10:27pm UTC](https://forums.unrealengine.com/t/html5-cursor-outside-game-window-after-being-shown-when-changing-to-new-ui-panel/657792/1 "2022-09-27T22:27:26Z")

</div>

This issue seems to only be occurring with HTML5 (I am in version 4.22.3) To initially use a game window you have to click, but every time the cursor is shown after that you have to click the game window again to hide it, how can I fix this? I have included my code for this interaction below as well as a video of both it functioning as expected when launched on PC and it’s odd behavior in HTML5. Let me know if I can provide any additional information and thanks in advance for the help 🙂

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/f/b/9fbd92dce0f68cc3ad589066201eb6da2f685868.jpeg)

Process Working on PC

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/e/f/defb30fbd2aaea0880f3848b1978d7f6ea4d2370.jpeg "Cursor Process PC") ](https://www.youtube.com/watch?v=WGMv7cAClO4)

Process failing on HTML5

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/5/f5585c5bc7e1996ce1dad7147bb92170ef41728b.jpeg "Cursor Process HTML5") ](https://www.youtube.com/watch?v=Xntmt-khLPE)
