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