Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function loaded() {
- document.addEventListener('touchmove', function(e){ e.preventDefault(); });
- myScroll = new iScroll('scroller');
- }
- document.addEventListener('DOMContentLoaded', loaded);`
- <div id="wrapper">
- <div id="scroller">
- <ul>
- <li>...</li>
- </ul>
- </div>
- #wrapper {
- position:relative;
- z-index:1;
- width:/* your desired width, auto and 100% are fine */;
- height:/* element height */;
- overflow:/* hidden|auto|scroll */;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement