如何使用Javascript减慢滚动速度? [英] How to slow down scrolling speed with Javascript?

查看:127
本文介绍了如何使用Javascript减慢滚动速度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我滚动一些带有许多元素的litlle div时,我的鼠标滚动太快,所以我看不到很少的元素。

When I scroll some litlle div with many elements, my mouse scrolling is too fast so I can't see few elements.

推荐答案

滚动速度无法更改,因为它们是系统配置,不应允许Javascript更改用户自己的设置。

Scroll speed can't be altered as they are System configurations and Javascript shouldn't be allowed to alter a user's own settings.

但是有很多您可以使用的jquery自定义滚动条,它提供了一个更改滚动速度的选项。
示例: mCustomScrollbar,jquery slimscroll等

But there are a lot of jquery custom scrollbars that you can use, which offer an option to change the scroll speed. Examples: mCustomScrollbar, jquery slimscroll etc

这篇关于如何使用Javascript减慢滚动速度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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