Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/456.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/84.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript jQuery自定义内容滚动速度_Javascript_Jquery_Html - Fatal编程技术网

Javascript jQuery自定义内容滚动速度

Javascript jQuery自定义内容滚动速度,javascript,jquery,html,Javascript,Jquery,Html,我在web应用程序中使用jQuery自定义内容滚动条,但速度有问题。在文档中,我看到了应该使用哪些方法,但对我来说仍然很慢 这是我的密码 $(".content").mCustomScrollbar({ theme: "light", }); $(".content").mCustomScrollbar("scrollTo", "bottom", { scrollInertia: 3000 }); 试试下面的代码 $(".content").mCustomS

我在web应用程序中使用jQuery自定义内容滚动条,但速度有问题。在文档中,我看到了应该使用哪些方法,但对我来说仍然很慢

这是我的密码

$(".content").mCustomScrollbar({
        theme: "light",

    });
$(".content").mCustomScrollbar("scrollTo", "bottom", {
    scrollInertia: 3000
});
试试下面的代码

 $(".content").mCustomScrollbar({
        scrollInertia: 500,
        autoHideScrollbar: true,
        theme: "light",
        advanced: {
            updateOnContentResize: true
        }
    });