iOS 9 `-webkit-overflow-scrolling:touch` and `overflow: scroll` breaks scrolling capability

前端 未结 3 1301
臣服心动
臣服心动 2020-12-17 18:50

I\'m developing a webapp and I\'ve got a div inside of an iFrame that has hidden, overflowed content that I want to be scrollable.

On Safar on iOS 9 when I add

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-17 19:14

    It seems another hack for this Safari bug is to use javascript to set a style="overflow: none" and reset it back to its previous value immediately after.

提交回复
热议问题