JSFiddle - React, Tailwind, and code Playground

by sandeepan_nits

HTML

<script src="-	http://cubiq.org/dropbox/iscroll/iscroll.js?v3.7.1"></script>
<div id="wrapper">
        <div id="scroller">
            <ul>
                <li>hello world</li>
            </ul>
        </div>
    </div>

CSS

#wrapper {     position:relative;     z-index:1;     width:/* your desired width, auto and 100% are fine */;     height:/* element height */;     overflow:/* hidden|auto|scroll */; }

JavaScript

function loaded() {
        document.addEventListener('touchmove', function(e){ e.preventDefault(); });
        myScroll = new iScroll('scroller');
          alert("initiated");
    }
    document.addEventListener('DOMContentLoaded', loaded);