Adam Bouqdib 11 年之前
父节点
当前提交
78e53640c8
共有 3 个文件被更改,包括 2 次插入2 次删除
  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 %

文件差异内容过多而无法显示
+ 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 %

部分文件因为文件数量过多而无法显示