iScroll 4 stops working because of container CSS created by javascript jQuery
问题 I'm running iScroll 4 inside a DIV, but the DIV's height is generated dynamically, and screws up iScroll <script src="js/iscroll/iscroll.js?v4"></script> <script> var myScroll; function loaded() { myScroll = new iScroll('wrapper-sidebar-left'); myScroll = new iScroll('wrapper-sidebar-right'); myScroll = new iScroll('wrapper'); } document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false); document.addEventListener('DOMContentLoaded', loaded, false); </script> If I give