sroze / ngInfiniteScroll

Infinite Scrolling for AngularJS
http://sroze.github.com/ngInfiniteScroll/
MIT License
2.89k stars 725 forks source link

ngInfiniteScroll fires only once #345

Open linuxdog opened 7 years ago

linuxdog commented 7 years ago

I use two nearly identical scripts, calling data with the same angular-script - but while the first is working fine (calling 100 by 100 of datasets), the other just calls once.

I tried any given parameters, tried different infinite-scroll-distance-values but nothing changes. After one call, theres no second call.

jquery is loaded before angular.

`

        <f:render partial="Owners/Scrollelement" arguments="{owners:owners}"></f:render>

        <div infinite-scroll='entryscroll.nextPage("[...my php-call...]")'
             infinite-scroll-disabled='entryscroll.busy'
             infinite-scroll-distance='2' id="entryscroll"
        >

            <div ng-repeat='item in entryscroll.items track by $index' class="scrollitems">
                <div ng-bind-html="item"></div>
            </div>
            <div style='clear: both;'></div>

        </div>

        <div ng-show='entryscroll.busy' style="text-align:center; padding:10px;">
            <f:image src="EXT:offertiles/Resources/Public/Files/ajax-loader.gif" height="32px" width="32px"/>
        </div>

    </div>`

Only difference to the other working script is, that I call this in a frameset (problems with window.height?).

David-Tsui commented 7 years ago

yep, +1 here

ghost commented 7 years ago

+1, have to go back at the top of the page and go down again to make it work

pasdoy commented 7 years ago

reverted to 1.2.2 and it works fine again

lawphotog commented 6 years ago

I got the same problem that it needs to scroll to top to load again and reverted to 1.2.0 and it works with no other changes. is there any suggestions how to get around this problem on 1.3.0? I can't revert it as it's using company wide.