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

前端 未结 15 2606
予麋鹿
予麋鹿 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:37

    What I did was add following to the touchstart and touchend/touchcancel events:

    scrollTo(0, 1)
    

    Since chrome does not scroll if it's not on scrollY position 0 this will prevent chrome from doing pull to refresh.

    If it still does not work, try also doing that when the page loads.

提交回复
热议问题