Preserve browser orientation on mobile devices

Please post public support tickets here. Note: for private support tickets, please send an email to support@cshtml5.com instead.
krylon
Posts: 6
Joined: Wed Sep 04, 2019 11:04 pm

Preserve browser orientation on mobile devices

Postby krylon » Tue Nov 26, 2019 1:42 am

Hello everyone,

Is it possible to ensure the browser orientation stays the same on mobile devices no matter how enthusiastically the user flips their device around?

Thanks!

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: Preserve browser orientation on mobile devices

Postby JS-Support @Userware » Tue Nov 26, 2019 2:03 am

Hi,

Adding to the following line to the <header> section of the file "index.html" should do the job:

Code: Select all

<meta http-equiv="ScreenOrientation" content="autoRotate:disabled">


Regards
JS-Support


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 47 guests

 

 

cron