cubiq / 2-way-iScroll

Horizontal snap scroll (carousel) + vertical free scroll on mobile webkit using iScroll
MIT License
116 stars 27 forks source link

scrollTo not updating currentPage #7

Open lplohmann opened 12 years ago

lplohmann commented 12 years ago

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.

ruthh commented 12 years ago

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.