Skip to content
This repository was archived by the owner on Jun 9, 2021. It is now read-only.

Conversation

khozlov
Copy link

@khozlov khozlov commented Jul 15, 2013

We run into some issues when our top nav was ordered differently than the sections on the page. In our case the link to the top section was moved from the first position to the last which made it always be returned.
This change fixes the issue and makes sure that when you are at the bottom of your page, last section is being returned even if it's to small to be chosen based on regular calculations.

Fixed detecting current section when the nav has a different order
than the actual sections and at the bottom of the page (returning
the last section regardless of other calcualtions).
@davidbarratt
Copy link

This fixes my problem! Thanks!

@chesedo
Copy link

chesedo commented Nov 22, 2013

This fixed the same issue for me, too.
Thanks for the fix, hope it gets merged back.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants