I am currently developing an iOS application using phonegap 1.5 and jQuery Mobile.
I understand that we can turn off page drag and drop using the following javascript:
function preventBehavior(e) { e.preventDefault(); }; document.addEventListener("touchmove", preventBehavior, false);
However, scrolling content will not work if enabled above.
Is there any way to prevent users from dragging a page, but allow scrolling?
I tried using iScroll. To do this, I will need to manually do
scrollbar.refresh();
under the pageinit event on each page. Unfortunately, I have many pages that require scrolling. = (
Are there any other methods that you can use to enable scrolling without using third-party plugins?
source share