Prevent iOS bounce without disabling scroll ability

前端 未结 7 1236
情歌与酒
情歌与酒 2020-11-28 06:14

I am trying to implement a solution to prevent the iOS bounce effect in Safari for iOS when a web page content is larger than the viewport.

The page I am working on

7条回答
  •  粉色の甜心
    2020-11-28 06:55

    You just need to add a CSS property overscroll-behavior: none to your body

    body {
      overscroll-behavior: none
    }
    

    More details are in this article

提交回复
热议问题