If you are in fullscreen mode[1] you can lock the orientation using window.screen.lockOrientation() or window.screen.mozLockOrientation()[2]

-Brad

1] https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Using_full_screen_mode?redirectlocale=en-US&redirectslug=Web%2FGuide%2FDOM%2FUsing_full_screen_mode
2] https://developer.mozilla.org/en-US/docs/Web/API/Screen.lockOrientation

On 10/17/13 6:27 AM, Michal Lower wrote:
Wesley Johnston <wjohnston@...> writes:

1.) You can disable zooming in the HTML itself. Just add a metaviewport [1]
with user-scalable=no.
Is there a way to disable screen rotation inside GeckoView? I'm pretty sure
that my activity doesn't rotate but content inside embedded GeckoView does.

_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev

_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev

Reply via email to