admin管理员组文章数量:1417555
Generally speaking, on an iPad, if we have a fixed width/height iframe element , it should scroll automatically using 2-fingers..
But because of some issue/bug in the latest IOS, we are unable to scroll the fixed dimension element..
So is there any library or any alternate by which I can wither use iframe / object element and add code which would simulate scrolling..
I can use object element, in case there is a issue with iframe unable to receive events..But I need either of these, as I have to include a child page..
Generally speaking, on an iPad, if we have a fixed width/height iframe element , it should scroll automatically using 2-fingers..
But because of some issue/bug in the latest IOS, we are unable to scroll the fixed dimension element..
So is there any library or any alternate by which I can wither use iframe / object element and add code which would simulate scrolling..
I can use object element, in case there is a issue with iframe unable to receive events..But I need either of these, as I have to include a child page..
Share Improve this question asked May 27, 2011 at 8:52 copenndthagencopenndthagen 50.9k105 gold badges313 silver badges492 bronze badges3 Answers
Reset to default 3This is what your looking for: http://cubiq/iscroll Tried it, works fine
I would use event.initEvent. However, it's just sugestion - I'm not able to check if it works.
I use plain jquery to do the scrolling:
function scroll(div, px){
$(div).animate({scrollTop:$(div).scrollTop()+px}, 400);
}
for 200px, use as:
scroll('#my_iframe_id', 200);
本文标签: javascriptSimulate scroll event on iPadStack Overflow
版权声明:本文标题:javascript - Simulate scroll event on iPad - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745272603a2650985.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论