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 %

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است