IOS browser crashes when using -webkit-overflow-scrolling: touch;

When creating a scrollable div for iOS devices, scrolling scrolling does not work - so you should use beta-scrolling-forward forwarding: touch; property.

However, it seems that this is a browser crash for me - not immediately, but, it would seem, randomly. Removing all scroll -webkit-overflow: touch; properties stop browser crashing.

I tried using iScroll, touchSwipe and several other plugins that I don’t remember the name, but were either too cumbersome to implement (I have a very short period of time for development) or did not work as desired.

Does anyone experience the same problem, and if you have, have you found a solution?

+5
source share
3

100

. , , .

iOS5 iOS6, iPod Touch 4.1, iPad 2, , Touch Safari, iPad .

Apple, .

+3

, , ... , "" div, . Lame.

+2
let content = document.querySelector(".content");
if (content.scrollTop <= 0) {
    content.scrollTop = 1;
} else if (content.scrollTop >= content.scrollHeight - content.clientHeight) {
    content.scrollTop = content.scrollHeight - content.clientHeight - 1;
}
-1
source

All Articles