Iscroll only works after changing orientation? in iphone ipad

Iscroll starts only after changing orientation, with a change in orientation it will behave like an elastic band.

+4
source share
1 answer

I had this problem. It turned out that I called iScroll too early. My solution was to either wrap iScroll in a timeout, like the cube offered on the site, or call .refresh () on your iScroll as soon as the rendering is complete.

You can test this by opening the console and calling yourScroll.refresh ();

+3
source

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


All Articles