Oct
13
13
Firefox 3.6 to use device orientation
A nice little trick appeared on the Mozilla hacks blog. Firefox 3.6 will be able to use your device orientation (if the information is available) and apply it to a web page. For now, I can’t really see any use for it, but hey, it is cool anyway.
Using the API is very simple. All you have to do is add a simple event listener:
-
window.addEventListener("MozOrientation", function(e) {
-
/* 3 values: e.x, e.y, e.z */
-
}, true);
Leave a comment
Articles
Some Tweets
- browseemall a nice solution for cross-browser testing http://t.co/b9ijFDqp
- Backbone.js 0.9 is kind of a nightmare for me, I see nothing in the changelog that should break my code but, lot of stuff are broken
- jQuery Mobile and backbone.js, the ugly http://t.co/Vi0UJlxe
- Instapaper Founder Marco Arment On The App Business http://t.co/HjiSYwjO
- CSS bug on ie8, only on windows xp, yay me, testing on a decade years old OS
- jQuery Mobile and backbone.js, the ugly http://t.co/Vi0UJlxe








