Skip to content

Commit

Permalink
fix stream-more xhr sent upon each scroll event when auto_stream_more=1
Browse files Browse the repository at this point in the history
  • Loading branch information
niol committed Feb 6, 2017
1 parent 85edc9c commit ae76c98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/selfoss-events-entries.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ selfoss.events.entries = function(e) {
return;

var content = $('#content');
if($('.stream-more').length > 0
if($('.stream-more').is(':visible')
&& $('.stream-more').position().top < $(window).height() + $(window).scrollTop()
&& $('.stream-more').hasClass('loading')==false)
$('.stream-more').click();
Expand Down

0 comments on commit ae76c98

Please sign in to comment.