Slimscroll条在移动浏览器中非常慢 [英] Slimscroll bar very slow in mobile browser

查看:319
本文介绍了Slimscroll条在移动浏览器中非常慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用slimscrollbar插件.它在Web浏览器中可以正常工作,但在移动浏览器中却非常慢.

有什么解决方案可以提高移动设备的运行速度?

解决方案

如果您使用了以下位置的slimscrollbar插件: http://rocha .la/jQuery-slimScroll ,您可能希望将"touchScrollStep"的设置更改为50.

默认值为200,这非常慢,小于200则更快,并且-200是反向滚动自然"滚动.

一些代码:

$('#slimscroll').slimScroll({
   size: '5px',
   height: '600px',
   alwaysVisible: false,
   touchScrollStep: 50
});

干杯, 大卫

I am using the slimscrollbar plugin. It is working fine in Web Browser, but its very slow in mobile browser.

Any solution to increase the speed that work for mobile?

解决方案

If you have used the slimscrollbar plugin found here: http://rocha.la/jQuery-slimScroll you may want to change the setting of "touchScrollStep" to round 50.

The default is 200 which is pretty slow, less than 200 is faster and -200 is inverted scrolling "natural".

Some code:

$('#slimscroll').slimScroll({
   size: '5px',
   height: '600px',
   alwaysVisible: false,
   touchScrollStep: 50
});

Cheers, david

这篇关于Slimscroll条在移动浏览器中非常慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆