01org/appframework — pull request #489 by krisrak (2013-12-01 03:56:30+00:00)
Title: panel scroll locking when side menu is open

Issue
-
See issue #468, main panel is scrollable when side menu is open, also when slidemenu plugin is used,scrolling is possible while sliding menu.

Test Case
-
- Open kitchen sink app and toggle side menu, notice that main panel is scrollable.
- Swipe main panel to right and also move up/down, notice that main panel is scrollable

Fix
-
- implemented main panel scroll lock/unlock when side menu is open/closed.
- used `$().scroller().lock()` and `$().scroller().unlock()` functions of scroller plugin when side menu is shown or hidden.
- added an option param for `$.ui.toggleSideMenu()` to disable scroll locking, by default if no option is specified then - panel scrolling is locked when side menu is open.
- this will first check if `af().scroller` plugin exists.