Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 575 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 575 Bytes

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"