Adam Bouqdib 11 년 전
부모
커밋
26b365a5b9
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 !== 'down') ? params.offset : 0,
+                    offset = (direction && !$item.css('opacity')) ? 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 !== 'down') ? params.offset : 0,
+                    offset = (direction && !$item.css('opacity')) ? params.offset : 0,
                     itemtop = $(window).scrollTop() + height - $item.data('top');
                     
                 // offset in %

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.