Skip to content

Commit

Permalink
more accuracy on the highlighting of nav items
Browse files Browse the repository at this point in the history
  • Loading branch information
seutje committed Dec 2, 2011
1 parent f843a47 commit e826324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@

$.each( cache, function( i, v ) {
// if we're past the link's section, activate it
if ( scroll > v.target.position().top ) {
if ( scroll + $navheight > v.target.position().top ) {
last && last.removeClass('active');
last = v.link.addClass('active');
} else {
Expand Down

0 comments on commit e826324

Please sign in to comment.