daily pastebin goal
5%
SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function loaded() {
  2.   document.addEventListener('touchmove', function(e){ e.preventDefault(); });
  3.   myScroll = new iScroll('scroller');
  4. }
  5. document.addEventListener('DOMContentLoaded', loaded);`
  6.  
  7. <div id="wrapper">
  8. <div id="scroller">
  9.     <ul>
  10.         <li>...</li>
  11.     </ul>
  12. </div>
  13.    
  14. #wrapper {
  15.   position:relative;
  16.   z-index:1;
  17.   width:/* your desired width, auto and 100% are fine */;
  18.   height:/* element height */;
  19.   overflow:/* hidden|auto|scroll */;
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top