搜索
您的当前位置:首页正文

关于IE滚动导致fixed布局晃动的处理

来源:步旅网

document.addEventListener('wheel',function(event){
    event.preventDefault()
    const wd = event.deltaY
    const csp = window.document.documentElement.scrollTop
    window.scrollTo(0,  wd+csp)
})

因篇幅问题不能全部显示,请点此查看更多更全内容

Top