I tried destroying and setting a timeout, but its not working for me. I still need to resize to start working.
myScroll = new iScroll('panelStatus');
myScroll = new iScroll('panelCancel');
myScroll = new iScroll('wrapper2');
myScroll.destroy();
myScroll = null;
setTimeout(function () {
myScroll = new iScroll('wrapper3', {
snap: true,
momentum: false,
hScrollbar: false,
onScrollEnd: function () {
document.querySelector('#indicator > li.select').className = '';
document.querySelector('#indicator > li:nth-child(' + (this.currPageX+1) + ')').className = 'select';
}
});}, 1000);
}
window.addEventListener('load', loaded, false);