Adam Bouqdib 11 jaren geleden
bovenliggende
commit
78e53640c8
3 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 1 1
      dist/jquery.smoove.js
  2. 0 0
      dist/jquery.smoove.min.js
  3. 1 1
      src/jquery.smoove.js

+ 1 - 1
dist/jquery.smoove.js

@@ -136,7 +136,7 @@
                     params = $item.params,
                     height = $(window).height(),
                     // if direction isn't set, set offset to 0 to avoid hiding objects that are above the fold
-                    offset = (direction) ? params.offset : 0,
+                    offset = (direction !== 'down') ? params.offset : 0,
                     itemtop = $(window).scrollTop() + height - $item.data('top');
                     
                 // offset in %

File diff suppressed because it is too large
+ 0 - 0
dist/jquery.smoove.min.js


+ 1 - 1
src/jquery.smoove.js

@@ -131,7 +131,7 @@
                     params = $item.params,
                     height = $(window).height(),
                     // if direction isn't set, set offset to 0 to avoid hiding objects that are above the fold
-                    offset = (direction) ? params.offset : 0,
+                    offset = (direction !== 'down') ? params.offset : 0,
                     itemtop = $(window).scrollTop() + height - $item.data('top');
                     
                 // offset in %

Some files were not shown because too many files changed in this diff