rstacruz / flatdoc

Build sites fast from Markdown

Home Page:http://ricostacruz.com/flatdoc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flatdocs menu highlights wrong section

mothra42 opened this issue · comments

On our side bar menu the active class is added to the wrong section. It seems like the current id and previous id that the script is looking at is off. Any help is appreciated.

Likely to due with static values used in your calculation in script.js. I'll see if I can find another way to solve this when I get home from work!

// Find the current active section every scroll tick.