Vertical and horizontal scrollable ion-content with ion-infinite-scroll only vertically


#1

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.
It is possible to my ion-infinite-scroll only call ‘LoadMore()’ when scrolled vertically?

Thanks!


#2

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();
}

if first condition is removed, works ok


#3

Hmm, would you mind making an issue for this?

http://ionicframework.com/submit-issue/