scottjehl / iOS-Orientationchange-Fix

A fix for the iOS orientationchange zoom bug.
770 stars 115 forks source link

Orientation check fix to check when changing from w.orientation === 180, not just 0. #15

Closed thereisnocat closed 12 years ago

thereisnocat commented 12 years ago

Orientation check currently only checks for portrait when the iP* is held right side up. Added check for w.orientation === 180 to check for portrait when the iP* is held upside down.

scottjehl commented 12 years ago

Looks good to me! Thanks for the pull.