jamesgpearce
24 Nov 2010, 8:26 AM
With Apple's iOS4.2 update on Monday, mobile Safari now has support for the W3C's DeviceOrientation spec (http://dev.w3.org/geo/api/spec-source-orientation.html) and device motion.
This now means we can all try out some neat new techniques with mobile web user interfaces.
For example, our own Rob Dougan already has a demo showing how an accelerometer can control the scrolling of an Ext.List in SenchaTouch: http://b.rwd.me/
It's very cool. This is another glimpse at the dawn of a whole new web era!
There are a few other cool demos out there already, but... use feel free to use this thread to show off any interesting ways you've used accelerometer and gyroscope capabilities in your Sencha Touch apps.
PS. The Apple reference pages for the two APIs are available at
https://developer.apple.com/library/safari/#documentation/SafariDOMAdditions/Reference/DeviceMotionEventClassRef/DeviceMotionEvent/DeviceMotionEvent.html
https://developer.apple.com/library/safari/#documentation/SafariDOMAdditions/Reference/DeviceOrientationEventClassRef/DeviceOrientationEvent/DeviceOrientationEvent.html
Although of course view-source is also your friend.
This now means we can all try out some neat new techniques with mobile web user interfaces.
For example, our own Rob Dougan already has a demo showing how an accelerometer can control the scrolling of an Ext.List in SenchaTouch: http://b.rwd.me/
It's very cool. This is another glimpse at the dawn of a whole new web era!
There are a few other cool demos out there already, but... use feel free to use this thread to show off any interesting ways you've used accelerometer and gyroscope capabilities in your Sencha Touch apps.
PS. The Apple reference pages for the two APIs are available at
https://developer.apple.com/library/safari/#documentation/SafariDOMAdditions/Reference/DeviceMotionEventClassRef/DeviceMotionEvent/DeviceMotionEvent.html
https://developer.apple.com/library/safari/#documentation/SafariDOMAdditions/Reference/DeviceOrientationEventClassRef/DeviceOrientationEvent/DeviceOrientationEvent.html
Although of course view-source is also your friend.