CSS: Disable bounce effect for scroll on iOS 13

前端 未结 2 1429
我在风中等你
我在风中等你 2021-02-08 21:38

In Safari 13 release notes it is stated that there is no longer the need to apply the following to an element to enable the bounce scroll effect:

div {
  overflow         


        
2条回答
  •  既然无缘
    2021-02-08 22:14

    I think you should try to change that using the overflow property that in Safari blocks the bouncing scroll behaviour. To do that in the parent container of your scrolling div you have to set:

    overflow: hidden;
    

    and then in your div set something like this:

    div {
      overflow: auto;
    }
    

提交回复
热议问题