Matteo:
iscroll-probe 5.1.2. I followed the demo "pretty much" to the letter and while I'll shortly take the demo and add a second page, my problem is that I have a JQM page in the 'single page' model where subsequent pages are navigated via their page id.
My home page holds a generic horizontal scroller that works just fine... the home page doesn't need to scroll vertically. However, when I navigate to another page, native vertical scrolling on that and all subsequent pages is disabled. Navigation happens via <a hfre="#pageIDOfTargetPage</a> (menu bars) and if you poke the scroller I use the iscroll emitted event to navigate with window.location.href = #pageIDofTheTargetPage. Both navigation methods result in no native vertical scrolling on any subsequent page.
I've tried destroying the iscroll when the home page is hidden (bound to the onPageHide event) but that doesn't allow the other pages to vScroll. Interestingly, native vScroll works just fine -until- the iscroller is initialized, once it comes into existance it behaves as if iscroll is forever swallowing the native touchmove event. I have confirmed that the touchmove event is fired on subsequent pages but nothing happens.
I initialize the scroller thusly:
gPosterPictureScroller = new IScroll('#scrollerPageWrapper', {
snap: 'li',
tap: 'posterPictureScrollerWasTapped',
momentum: false,
eventPassthrough: true,
scrollX: true,
scrollY: false,
preventDefault: false,
scrollbars: false
});
Is iscroll hanging onto something?
Thanks
Kim