This sus game works just fine for me, but I have problems with firefox too. In my case when my 3d game is capturing my mouse it moving my camera to the right on it's own with the slow speed. And the strange part is it works just fine in Edge and in firefox when I open it on full screen. Also I tried to run my web buid on simple local python server and went on localhost on firefox - the game works just fine.