-webkit-overflow-scrolling: touch; breaks in Apple's iOS8

前端 未结 10 1403
刺人心
刺人心 2020-11-30 20:19

I\'m working on a web app that uses -webkit-overflow-scrolling:touch in several places to give the overflown divs inertia scrolling.

Since updating to I

10条回答
  •  孤街浪徒
    2020-11-30 21:06

    I was not able to solve the problem with previous answers. So after a few hours a gave the iScroll library a try, iScroll. I know including an extra library (and quite sizable) to add scrolling for just iOS is not great but this is what worked for me. Just follow the readme, the lite version suffices.

    Disadvantages:

    • Scrolling on Android now looks like crap, it is not native anymore.
    • It is not possible to refresh the page by scrolling anymore
    • You need to apply another fix for Android : Clicks not working

    I am unsure if I will use it, but if you are in need give it a go.

提交回复
热议问题