Let me start by saying that for me the most important thing is getting a band-aid fix so I can make my deadline in 3 days.
When I made the project initially, clicking on the viewport would lock the mouse cursor to the viewport and hide it. I prevented this behaviour on my end via code and using 's HTML5 scripts to check if it’s HTML5 and show the mouse cursor.
These issues below occur only in the packaged HTML5 builds. They do NOT occur until re-entry of the cursor to the viewport, meaning that it is resetting all my settings whenever the mouse re-enters, initially, it behaves as intended UNTIL the mouse leaves and re-enters.
There is a setting in Project Settings → Engine → Input → Default Viewport Mouse Capture Mode. I’ve set it to “No Capture”. This is not helping, it is capturing it. It should not be. It is reflected in PIE but not in the packaged HTML5.
This issue is present in Chrome, and I also tested in Microsoft Edge, where the issue would be present but it instead asks me to “Let localhost turn off your mouse pointer?”. It should not be trying to turn off my mouse pointer, I have specifically told it to show it.
My guess is that it’s calling requestPointerLock() when it should not be. Something akin to this:
document.getElementsByTagName("canvas")[0].addEventListener("click", function() {
this.requestPointerLock();
}, false);