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...
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...
Anyone know why the device orientation detection is not working in Mozilla Firefox? And no I'm not using mozOrientation.It works just fine in Chrome.  Any help would be greatly appreciated!...
I am writing a mobile application for Windows Phone in HTML5. I want to detect the phone's rotation around the z-axis (I mean the rotation that is used for example in Doodle jump to make the character jump to the left or to the right).  In my app...
Is it possible in React Native to get the device orientation in degrees? I know that there are a few modules on npm, usually they offer return just a string whether the device is portrait or landscape.  I wanna try to animate a Wind Rose, and I would...
I'm working on a project that has a 360° video, currently I'm using Marzipano js, I have used this demo: https://www.marzipano.net/demos/device-orientation/index.html  On the desktop all is satisfied, pans with the mouse and that's all.....
I am trying to get size and position of an image when I rotate my device but it always appears the same.  $(window).bind('orientationchange', function(evt) {     var height = $('#imgg').height();     var width = $('#imgg').wid...
I'm trying to use https://github.com/matthewhudson/current-device  On the demo page https://thematthewhudson.com/current-device/ I inspected the source code of the page and I see this:  https://thematthewhudson.com/current-device/  <script src...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.