X
Tap here to go to the mobile version of the site.

Support Forum

latest firefox mediaQueryList spuriously reports orientation change on attempt to enter data in a form

Posted

An html5-Javascript AR app on my Galaxy S3 recently started spuriously reporting an orientation change when I click on a data entry field. window.matchMedia("(orientation: portrait)").addListener(setOrientationValue) reports a change to landscape mode and about 1 1/4 second later it goes back to (correct) portrait mode. I'm currently working around this bug by checking accelerationIncludingGravity, which gives the actual orientation.

An html5-Javascript AR app on my Galaxy S3 recently started spuriously reporting an orientation change when I click on a data entry field. window.matchMedia("(orientation: portrait)").addListener(setOrientationValue) reports a change to landscape mode and about 1 1/4 second later it goes back to (correct) portrait mode. I'm currently working around this bug by checking accelerationIncludingGravity, which gives the actual orientation.

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0

More Information

guigs 1072 solutions 11697 answers

Hi tmoran, I understand that you are working around a bug you may have found when developing in javascript and testing in Firefox for Android. I do not know the exact code and debugging would require another developer.

Please also ask your question at stackoverflow.com, and if they cannot find a work around bugzilla.mozilla.org is the site for reporting Firefox bugs:

Hi tmoran, I understand that you are working around a bug you may have found when developing in javascript and testing in Firefox for Android. I do not know the exact code and debugging would require another developer. Please also ask your question at stackoverflow.com, and if they cannot find a work around bugzilla.mozilla.org is the site for reporting Firefox bugs: *[https://support.mozilla.org/en-US/kb/where-go-developer-support Where to go for developer support]