I am building a website specifically for mobile devices. There is one page in particular which is best viewed in landscape mode.   Is there a way to detect if the user visiting that page is viewing it in Portrait mode and if so, display a message i...
I used a .js to avoid landscape view from mobile device. I edited a white full-screen image saying "this site is not thought to be viewed in landscape mode, please turn your device" to be shown each time I rotate my device from portrait to la...
I am currently building a small panoramic photo viewer which has an option to navigate the scene with a gyroscope.  I am taking the data from the deviceOrientation event and turning the euler angles into a rotation matrix, and then putting that throu...
I'm trying to smooth the data I'm getting from the deviceOrientation API to make a Google Cardboard application in the browser.   I'm piping the accelerometer data straight into the ThreeJs camera rotation but we're getting a lot of n...
I have a question about showing an arrow to a location. This is what I have:    You can save your current location in the localstorage. A while later when you are for example 30 meters further you can click on the second button "Show direction to...
I'm trying to use HTML5 deviceOrientation events in Javascript to rotate an image when the user rotate his iPhone around him.  I use this code to detect when the gyroscope is moving :  window.addEventListener('deviceorientation', function...
I am currently developing mobile web apps that make an extensive use of the deviceOrientation and deviceMotion HTML5 APIs. In most mobile browsers, the event fires every 50 millisecond which is too slow for the precision I need: is there a way to get...
The bounty expires tomorrow. Answers to this question are eligibl...
Anyone with DeviceOrientationEvent experience and a phone/tablet handy?  Running the following code snippets on a gyroscope-having device, I notice gamma (rotating left/right along y-axis) gets large and unpredictable as beta approaches 90deg (device...
With iOS 12.2 Apple has blocked access to device orientation data by default. This must be enabled manually now (-__-), as explained here.  The thing is, even after enabling "Motion & Orientation Access" in settings, I got this warning me...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.