IPad sites with "-webkit-overflow-" scrolling: touch; "scrolling just stops working sometimes ...

It is only for safari on ipad

I have the following css in a div with content inside overflow:

#some_div{ position: absolute; top:0px; left: 0px; right: 0px; bottom: 0px; overflow-y:scroll; overflow-x:scroll; -webkit-overflow-scrolling: touch; } 

However, after a while, or sometimes when a div hides and bows, scrolling simply stops working.

Does anyone have this before or know how to fix it?

Hooray!

+6
source share
1 answer

I managed to get around this "error" by preventing the default behavior of the body tag

 $('body').on('touchmove', function (e) { e.preventDefault(); }); 

I had a problem with iframe though

0
source

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


All Articles