TouchSwipe Demo - to be viewed on touch based devices
Advanced 2 - Page Scrolling
You can set how page scrolling is handled by the browser when the user is interacting with a touchSwipe object.
There are 4 possible settings for the
allowPageScroll option;
- auto - scrolling will only occur if a user swipes in a direction for which you have NOT defined a swipe handler. E.g If only swipeLeft is defined, then a RIGHT, UP or DOWN swipe would cause the page to scroll.
- none - scrolling will never occur.
- horiontal - horizontal swipes will cause the page to scroll.
- vertical - vertical swipes will cause the page to scroll.
NOTE: if the general
swipe or
swipeStatus handlers are specificed, then
allowPageScroll will be dissabled by default, as they detect swipes in all directions.
To use scrolling AND the
swipe handler, set
allowPageScroll to the direction you want the user to be able to scroll.