Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

Sometimes, it is desirable to prevent scrolling on the main body of the app. This can be accomplished by adding the following to the window.onload function in your app.js file in PhoneGap.

window.onload = function() {
  addEvent(document, "touchmove", function(e) {
    e.preventDefault();
  });
  // the rest of your onload code can go here
};
  • No labels