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

前端 未结 10 1377
刺人心
刺人心 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 20:52

    I tried every solutions here without success. I was able to make it work by having the property -webkit-overflow-scrolling: touch; on the scrollable div AND on the parent container.

    div.container {
        -webkit-overflow-scrolling: touch;
    }
    
    div.container > div.scrollable {
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
    }
    

提交回复
热议问题