Bradford Lassey <blassey@...> writes: > > If you are in fullscreen mode[1] you can lock the orientation using > window.screen.lockOrientation() or window.screen.mozLockOrientation()[2]
I've tried that but I can't get into full screen mode because it needs to be started from 'short user triggered event' and I want to host HTML5 based game inside my GeckoView and I need locked landscape orientation without user interaction. So I look for one of the following: 1) some way to trigger fullscreen mode from javascript without user interaction 2) way to disable processing of event that notifies Gecko that device changed screen orientation, I don't know where to look in the source for code handling screen rotation (native code?). 3) mozLockOrientation documentation states that locking rotation is allowed outside fullscreen in webapps so maybe there is a way of adding GeckoView as another exception. It would make sense because Android interface components doesn't rotate by themselves, their container (ie. View) handles that. _______________________________________________ mobile-firefox-dev mailing list [email protected] https://mail.mozilla.org/listinfo/mobile-firefox-dev

