Showing
1 changed file
with
1 additions
and
2 deletions
@@ -12,7 +12,6 @@ var $ = require('jquery'), | @@ -12,7 +12,6 @@ var $ = require('jquery'), | ||
12 | 12 | ||
13 | var navHammer, | 13 | var navHammer, |
14 | winH = $(window).height(), | 14 | winH = $(window).height(), |
15 | - loadMoreH = $('#load-more').height(), | ||
16 | $goodList = $('#goods-list'), | 15 | $goodList = $('#goods-list'), |
17 | searching = false, | 16 | searching = false, |
18 | page = 0, | 17 | page = 0, |
@@ -140,7 +139,7 @@ $('.maybe-like p').on('touchstart', function (e) { | @@ -140,7 +139,7 @@ $('.maybe-like p').on('touchstart', function (e) { | ||
140 | 139 | ||
141 | //srcoll to load more | 140 | //srcoll to load more |
142 | $(window).scroll(function () { | 141 | $(window).scroll(function () { |
143 | - if ($(window).scrollTop() + winH >= $(document).height() - loadMoreH - 50) { | 142 | + if ($(window).scrollTop() + winH >= $(document).height()) { |
144 | search(); | 143 | search(); |
145 | } | 144 | } |
146 | }); | 145 | }); |
-
Please register or login to post a comment