Skip to content

Commit d3fa33d

Browse files
committed
Merge pull request #191 from AyogoHealth/mobile-spacer-fix
Ensure the spacer is hidden when the element is not visible.
2 parents ef7aab5 + ab10cfd commit d3fa33d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jquery-scrolltofixed.js

+3
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,9 @@
386386
if(target.is(':visible')) {
387387
isReset = false;
388388
checkScroll();
389+
} else {
390+
// Ensure the spacer is hidden
391+
setUnfixed();
389392
}
390393
}
391394

0 commit comments

Comments
 (0)