网站不会在Chrome中向下滚动

时间:2018-03-15 05:44:52

标签: html css

根本没有因为某种原因向下滚动,它在互联网资源管理器和Mozila上完全正常工作,但在Google Chrome上它拒绝向下滚动。请帮我!我不知道该怎么做。

菲利普

1 个答案:

答案 0 :(得分:2)

只需从return false文件中删除jquery.simplr.smoothscroll.js即可阻止在Chrome浏览器中滚动....

$('body').mousewheel(function(event, delta) {
    wheel = true;
    if (delta < 0) // down
        top = (top+viewport) >= doc.height() ? top : top+=step;
    else // up
        top = top <= 0 ? 0 : top-=step;

    body.stop().animate({scrollTop: top}, speed, self.ease, function () {
        wheel = false;
    });
    // return false;   // remove this
});