Arjun T Raj
Arjun T Raj

Reputation: 3207

Iscroll only working after orientation was changed? in iphone , ipad

Iscroll only starts after orientation was change, with out orientation change it will behave like rubber band.

Upvotes: 4

Views: 1335

Answers (1)

darryn.ten
darryn.ten

Reputation: 6973

I had this problem. It turned out that I was calling iScroll too early. My solution was to either wrap the iScroll in a timeout like cubiq suggests on the site, or call .refresh() on your iScroll once everything has finished rendering.

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

Upvotes: 3

Related Questions