bug: ion-infinite-scroll on ion-content direction="xy"
Type: bug
Platform: all
Inside my ion-content I have a list wich when scrolled to the bottom more items are loaded (provided by ion-infinite-scroll wich calls 'LoadMore()').
The problem is that if I set direction = xy to ion-content, ion-infinite-scroll calls 'LoadMore()' if I scroll vertically and horizontally.
the problem is in ionic.bundle.js in 'ionInfiniteScroll' directive.
(...) if ((maxScroll.left !== -1 && scrollValues.left >= maxScroll.left) || (maxScroll.top !== -1 && scrollValues.top >= maxScroll.top)) { onInfinite(); }
Typically you use ion-infinite-scroll only when using vertical (y) scrolling.
You only want your loadMore function to be called when you reach the bottom, but you want to leave x (horizontal) scroll enabled, is that correct?
Sorry for the late response. Its correct. I solved my problem that way. I think it should be in an official release. Thanks Em 07/11/2014 20:52, "Drew Rygh" [email protected] escreveu:
Typically you use ion-infinite-scroll only when using vertical (y) scrolling.
You only want your loadMore function to be called when you reach the bottom, but you want to leave x (horizontal) scroll enabled, is that correct?
— Reply to this email directly or view it on GitHub https://github.com/driftyco/ionic/issues/2508#issuecomment-62209842.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.