I have made an app using JQtouch, Jquery, and PhoneGap. When you type in a form's field, the entire page scrolls up or down each time you enter a character. I have searched everywhere for solutions but cannot find one. There was a similar problem here: https://github.com/jquery/jquery-mobile/issues/638 but his solution did not solve my issue.
Does anyone have an idea why the page would scroll up and down with each added character in a textbox? Because the page is so small, it scrolls up and down quickly making it very annoying.
Try this in an init function called onload :
function preventBehavior(e) { e.preventDefault(); }; document.addEventListener("touchmove", preventBehavior, false);
More discussion at http://groups.google.com/group/phonegap/browse_thread/thread/739525b7531b6d29/