In case anyone searches the same and comes here – here are usefull links:
https://github.com/BinaryMuse/ngInfiniteScroll/pull/7 (pull request and discussion)
https://github.com/hlsolutions/ngInfiniteScroll/tree/scroll-on-any-lement (fork with neccessary functionality)
https://raw.github.com/hlsolutions/ngInfiniteScroll/scroll-on-any-lement/src/infinite-scroll.coffee (source itself)
You can use it this way (example is in haml):
.div-with-overflow
%ul{data: {'infinite-scroll' => "getItems()", 'infinite-scroll-disabled' => 'cannotGetItems()', 'infinite-scroll-parent' => 'true'}}
Providing an 'infinite-scroll-parent' => 'true'
will make parent element to be used for calculations instead of a window.