-webkit-overflow-scrolling touch doesnt work with fixed elements

泄露秘密 提交于 2019-12-10 21:55:52

问题


I use an additional stylesheet that says the following to touch devices:

.touch{
    overflow-x:hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;

    body{
        overflow-x: hidden;
    }
}

It works almost perfectly. The problem is that all fixed elements don't actually stay fixed during scrolling. When scrolling is stopped, they get positioned the right way again, but during scrolling they stay in the place where they last were.

Does anyone have any experience with this? thank you.

来源:https://stackoverflow.com/questions/21306283/webkit-overflow-scrolling-touch-doesnt-work-with-fixed-elements

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!