开发者

iScroll sensitivity

开发者 https://www.devze.com 2023-04-10 07:35 出处:网络
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

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

精彩评论

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