app/assets/javascripts/custom/endless-scroll.js in artfully_ose-1.2.0 vs app/assets/javascripts/custom/endless-scroll.js in artfully_ose-1.3.0.pre1
- old
+ new
@@ -5,10 +5,10 @@
if($('#endless-scroll-pagination').length) {
$(window).scroll(function() {
if(!endlessScrollRequest) {
url = $('#endless-scroll-pagination .next_page a').attr('href');
- if ((url) && ($(window).scrollTop() > $(document).height() - $(window).height() - 150)) {
+ if ((url) && ($(window).scrollTop() > $(document).height() - $(window).height() - 350)) {
$('#endless-scroll-pagination').addClass('loading');
endlessScrollRequest = true;
$.getScript(url)
.done(function(script, textStatus) {
endlessScrollRequest = false
\ No newline at end of file