Currently delving into game development with Three.js, I'm utilizing the Web GL renderer to take over the entire browser window. A new challenge has arisen as I attempt to incorporate a chat box within this setup. To achieve this, I've placed an input tag inside like so:
<input id="chatMessageDiv" type="text" value="Message..."></input>
When it comes to styling, the CSS looks like this:
#chatMessageDiv {
position: absolute;
}
Despite these efforts, I encounter an issue where clicking on the input form does not allow me to edit the message. Although the cursor changes indicating text entry is possible, clicks yield no results.
I experimented by adjusting the input's z-index to 1, but unfortunately, that didn't resolve the problem. Adding an orbit controller or trackball controller isn't preferred in this scenario. How can I troubleshoot this persistent obstacle?