iOS5 Images disappear when scrolling with webkit-overflow-scrolling: touch

后端 未结 6 533
野性不改
野性不改 2020-12-01 08:15

I had previously been using iScroll plugin but wanted to drop it for the native behaviour.

The initial implementation was using

webkit-overflow-scr         


        
6条回答
  •  不知归路
    2020-12-01 08:47

    I have had the same problem in the past, if you need to use positioned elements try adding -webkit-transform: translateZ(0); to the elements or the container. This property often forces the browser to use hardware acceleration and with the extra power your images will most likely not disappear. It worked for me anyway.

    More useful stuff here too: http://www.html5rocks.com/en/tutorials/speed/html5/

提交回复
热议问题