开发者

iScroll sensitivity

Im using the latest iscroll script for a site viewed on an ipad. It works but you have to pressed down and scroll slowly for it to scroll properly. Is there anything I can change in the iscroll script or settings that would allow for better sensitivity to the touch and the scrolling itself is开发者_Python百科 faster?


It is a bit hard to really suggest the solution. But here are some pointers.

Attach the global touchmove event (and prevent defaultbehavior).

document.attachEvent('touchmove', function(e) { e.preventDefault(); }, false);

Keep the html elements inside the scroller to a minimum. You can add -webkit-transform: translate3d(0,0,0) to force the elements through the hardware acceleraion.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜