I’m trying to achieve the same behavior as in the Apple AppStore when viewed on iPhone;
a page with a long text description and containing a horizontal
scrollview with screenshots.
- You scroll the page up and down when
you move your finger up/down. - You scroll the screenshots sideways
when you move your finger sideways
within the screenshots div. - You scroll both the page and the
screenshots if you do both movements
within the screenshots div.
The the iscroll code solves 1 and 2. But I could not figure out how to solve 3.
How can 1+2+3 be solved?
iscroll 4 does it perfectly. let me write you what i did (based on the iscroll example)
then.. the css
and finally the xhtml
its a quick example, it works nice and smooth, be carefull with wrapper and wrapperb elements… the horizontal scroll has a b after the id..
hope it works for someone! =D
enjoy!!!