Scrolling freezes on iPad (javascript)

I am developing an app for iPad in javascript. I have a div. The content in this div should be scrollable. I added scrolling for the div using this class:

.scrollable {
 -webkit-overflow-scrolling: touch;
 overflow-y: scroll !important;
 -webkit-transform: translate3d(0, 0, 0);
}

This method works in 90% of cases, but sometimes I try to scroll through the contents and nothing happens. I wait about 3 seconds and try again - and the scrolling works. I do not have any javascript code that could lead to this behavior.

Why could this be?

+4
source share
1 answer

, , , , .

, , ( ), -webkit-transform: translate3d(0,0,0);, , "" .

( jQuery $.get, .then() , CSS .)

, .

+3

Source: https://habr.com/ru/post/1531307/


All Articles