3 ms·
I was hoping that this would automatically retilt the screen using the accelerometer. Alas, it always simply just rotates it a few degrees.
by burgerbrain 16y ago
I was hoping that this would automatically retilt the screen using the accelerometer. Alas, it always simply just rotates it a few degrees.
- mryall 16y agoThat's a cool idea. Accelerometer support for JS was added to iOS 4.2 [1], so it should be possible to modify the CSS transformations based on the DeviceOrientation [2]. [1] http://www.mobilexweb.com/blog/safari-ios-accelerometer-websockets-html5 http://www.mobilexweb.com/blog/safari-ios-accelerometer-webs... [2] http://dev.w3.org/geo/api/spec-source-orientation.html http://dev.w3.org/geo/api/spec-source-orientation.html