Skip to content

Commit ec615b3

Browse files
authored
fix(visibility): jquery scrollleft is a function rather than a property
$context.scrollLeft must be replaced with $context.scrollLeft() otherwise it returns NaN.
1 parent 62bd670 commit ec615b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/definitions/behaviors/visibility.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ $.fn.visibility = function(parameters) {
902902
element.offset.top += $context.scrollTop() - $context.offset().top;
903903
}
904904
if(module.is.horizontallyScrollableContext()) {
905-
element.offset.left += $context.scrollLeft - $context.offset().left;
905+
element.offset.left += $context.scrollLeft() - $context.offset().left;
906906
}
907907
// store
908908
module.cache.element = element;

0 commit comments

Comments
 (0)