Disabling android's chrome pull-down-to-refresh feature

前端 未结 15 2550
予麋鹿
予麋鹿 2020-12-02 04:20

I\'ve created a small HTML5 web application for my company.

This application displays a list of items and everything works fine.

The application is mainly us

15条回答
  •  情深已故
    2020-12-02 04:42

    You can try this

    body {
      /* Disables pull-to-refresh but allows overscroll glow effects. */
      overscroll-behavior-y: contain;
    }
    

    example :

    https://ebidel.github.io/demos/chatbox.html

    full doc https://developers.google.com/web/updates/2017/11/overscroll-behavior

提交回复
热议问题