CSS: Disable bounce effect for scroll on iOS 13

前端 未结 2 1431
我在风中等你
我在风中等你 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;
    }
    
    0 讨论(0)
  • 2021-02-08 22:16

    I don't know if i really understand this correct, but here it goes! :)

    Can't you just remove that line of code from your file?

    You could also try to write -webkit-overflow-scrolling: auto; !important

    Hope this helped :

    0 讨论(0)
提交回复
热议问题