Skip to content

Commit

Permalink
Fix condition to unstick elements at the top of the page
Browse files Browse the repository at this point in the history
fixes: leafo#110
  • Loading branch information
Marc Neuhaus committed Jul 22, 2015
1 parent 587593f commit f4991d4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jquery.sticky-kit.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ $.fn.stick_in_parent = (opts={}) ->
}).trigger("sticky_kit:unbottom")

# unfixing
if scroll < top
if scroll <= top
fixed = false
offset = offset_top

Expand Down
4 changes: 2 additions & 2 deletions jquery.sticky-kit.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion jquery.sticky-kit.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f4991d4

Please sign in to comment.