zynga/viewporter — pull request #5 by aemkei (2012-02-09 18:06:22+00:00)
Title: Option `viewporter.preventPageScroll` and method `viewporter.refresh()`

I made two additions to the API:

* `viewporter.preventPageScroll` (Boolean) - defaults to false, enabling it will prevent scroll events on the body element. Use this option to cancel iOS overscroll effect, which causes the view to bounce back when scrolling exceeds the bounds. Additionally it will scroll back the pane if the user clicks the page after selecting the address bar on iOS.

* `viewporter.refresh()` - refreshes the viewport. This is eg. useful when the browser displays an inline confirmations such as the geolocation alert on Android. **Hint**: Listen for `resize` events and then call this method.

Examples are included. I've also added a sample page with a fullscreen Google Maps display to show the new additions in action.