/overscroll

Prevent overscroll

Primary LanguageJavaScriptOtherNOASSERTION

Overscroll.js

An javascript workarround to prevent iOS overscroll but allows overscroll on children elements. Great for web applications. The minified version is less than 1kb. Feel free to comment or to fork

Bugs

  • Doesn't currently work on body element as default

Installation

  • Download overscroll.js or overscroll.min.js
  • Insert <script src="overscroll.js"></script> at the end of your page just before the </body> tag
  • Set Css so that body { overflow: "hidden"; }
  • Set any element overflow, overfow-x of overflow-y as "scroll" or "auto"