Commit e3fc0e58

mo khan <mo@mokhan.ca>
2014-09-08 02:18:42
start loading next section at 80 percent scroll.
1 parent 92a1660
Changed files (1)
app
assets
javascripts
app/assets/javascripts/application.js
@@ -32,7 +32,7 @@
 var initialize = function(){
   $('.tooltip-item').tooltip();
   $(window).scroll(function(){
-    if ( $(window).scrollTop() > ($(document).height() - $(window).height()) ) {
+    if ($(window).scrollTop() >= ($(document).height() - $(window).height())*0.8){
       $('.more-button').trigger('click');
     }
   });