alex_h Posted March 30, 2014 Share Posted March 30, 2014 I'm using my own plain js framework and suddenly started getting an error when I try to get firefox to go fullscreen on Android with the FullScreen API. I'm sure it was working previously, and the code does work in chrome on mobile and on all desktop browsers (including firefox). In firefox on android it doesn't go fullscreen but instead fires the onmozfullscreenerror event. Unfortunately I can't see any way to get any useful information out of this event, like for example why it fired in the first place. I am only requesting full screen on the document.documentElement when there is a touch event on the screen, so it should all be legit. I've even stripped it right back to a minimal test case with a single image on screen and just my fullscreen handler class in operation but the outcome is the same.If anyone can suggest how to identify the source of the problem please do let me know! Quote Link to comment Share on other sites More sharing options...
kuuuurija Posted March 31, 2014 Share Posted March 31, 2014 I faced this problem too, instead of touch event use click event. Quote Link to comment Share on other sites More sharing options...
alex_h Posted March 31, 2014 Author Share Posted March 31, 2014 Ah ok, at the moment I am registering for both touch began and mouse down I think. Perhaps if I just try changing which events I use then I may find a combination that works for all scenarios. Thanks! Quote Link to comment Share on other sites More sharing options...
alex_h Posted March 31, 2014 Author Share Posted March 31, 2014 Confirmed, it works perfectly if I just add a single listener for click, rather than one for mouse_down and one for touch_beganThanks again goldenratio! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.