The engineering team over at Mozilla has been cooking up an interested surprise for its user base in its upcoming Firefox 3.6 release. The browser will now be able to detect a mobile device’s orientation as long as it is equipped with an accelerometer that can tell which way is down.
"One new feature that we're including as part of Firefox 3.6 is support for web pages to access machine orientation information if it's available," said Christopher Blizzard, Mozilla Evangelist. "Many modern MacBooks and ThinkPads contain devices and drivers that expose this information. We've added support for Linux, Macs and some ThinkPads where drivers and devices are available."
According to Mozilla, the API is very simple to use and only
requires a simple event listener to be enabled. A short video clip of the
feature in action on a MacBook pro can be found here.