2-way-iScroll icon indicating copy to clipboard operation
2-way-iScroll copied to clipboard

scrollTo not updating currentPage

Open lplohmann opened this issue 13 years ago • 1 comments

When I scroll the wrapper with touch, currentPage is updated to the prev/next page. But when I use the scrollTo method, currentPage isn't updated and so the changeTarget, so I can't vertically scroll the visible page.

lplohmann avatar Oct 31 '11 13:10 lplohmann

I have this issue too. I wonder if anyone has a solution or a suggestion on how to fix this?

I have a slide set which scrolls horizontally and each slide within that set can scroll vertically. If I arrive at say slide 2 by deep linking, I cannot immediately scroll vertically on that particular slide. If I try to, from looking at the markup I can see that the iScroll object has applied the scroll to the first slide, and no others. If I try to scroll vertically, the Ypos does update, but only on the first slide and not the one that I am trying to scroll vertically. However, if I scroll horizontally first (instead of vertically), iScroll will apply a vertical scroll to all of the slides in that slide set.

ruthh avatar Feb 15 '12 14:02 ruthh