I\'m currently building a web app in android. My app runs in a webview, and loads third-party contents through iframes. The iframe size is fixed and supposed not to be chang
Tony. In my opinion, the key point of this trick is that you have to fix the height of the iframe. Then you can apply the iscroll to any div element in the iframe. Here is a small code snippet:
// disable default touchmove handler
document.addEventListener('touchmove', function(e){
e.preventDefault();
});
// make the div 'list' scrollable
var myScroll = new iScroll('list'); // Blah
I use jQuery in the code and it works well with iScroll.