views:

269

answers:

1

I'm working on a web application where I'm trying to capture when the user rotates the screen. Fundamentally, I want to know if the user is browsing in portrait mode or landscape mode. The iPhone/iPad and Android browsers send a resize event when the screen orientation changes.

Unfortunately, the browser in webOS doesn't seem to send that notification. Any advice on how to detect in the browser any changes in orientation on Palm webOS?

Thanks.

+2  A: 

Apparently it's marked as a bug that the event isn't present and "should be fixed in an upcoming release". You could possibly watch window.innerHeight and window.innerWidth as a workaround.

hemisphire