Skip to content

Commit

Permalink
Merge pull request #191 from AyogoHealth/mobile-spacer-fix
Browse files Browse the repository at this point in the history
Ensure the spacer is hidden when the element is not visible.
  • Loading branch information
bigspotteddog committed Jul 22, 2015
2 parents ef7aab5 + ab10cfd commit d3fa33d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jquery-scrolltofixed.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,9 @@
if(target.is(':visible')) {
isReset = false;
checkScroll();
} else {
// Ensure the spacer is hidden
setUnfixed();
}
}

Expand Down

0 comments on commit d3fa33d

Please sign in to comment.