if I use -webkit-overflow-scrolling
for a scrolling div, it scrolls perfectly with native momentum. But, div itself sometimes freezes and does not respond my finger moves. After 2-3 seconds later, it becomes again scrollable.
I don't know how I am reproducing this problem. But, as I see there are two main behavior creates this situation.
First, If I wait for a while, for instance, 20 seconds, and touch the div, it does not respond. I wait a couple of seconds, and it becomes working again.
Second, I touch several times quickly, and then, it becomes freezing, and again, after a couple of seconds later, it starts working again.
How can I prevent this freezing?
element
, use.element > * { -webkit-transform: translateZ(0px); }
in your CSS. – Pickarscroll
and-webkit-overflow-scrolling
enabled. Open the live demo link on an iOS device (I tried on iPhone 6 and on iPad mini 2, both running iOS 11.4.1), pull further at the top or at the bottom a few times to bounce the page, and there you have it, scrolling freezes for a few seconds. Disgusting. – Turmeric