Skip to content

Commit 766292c

Browse files
committed
Fixed offsetTop comparing bug
1 parent c6d309b commit 766292c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web/mage/sticky.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ define([
6464
offsetTop = this.options.offsetTop;
6565
}
6666

67-
if (offset < this.options.offsetTop) {
67+
if (offset < offsetTop) {
6868
offset = 0;
6969
}
7070
}

0 commit comments

Comments
 (0)