LiranCohen / stickUp

stickUp a jQuery Plugin for sticky navigation menus.
GNU Lesser General Public License v3.0
1.54k stars 617 forks source link

isStuck is not removed #33

Open cardeo opened 10 years ago

cardeo commented 10 years ago

My nav menu is inside of a bootstrap accordion. When I start scrolling it jumps to the top of the page which is what I want. However, if I scroll back to the top, the isStuck class is not removed so the bar always appears at the top once it is first triggered. Have to refresh the page to remove it

muya commented 10 years ago

hey @cardeo, did you get a fix for this?

cardeo commented 10 years ago

@muya no not yet

yeyuguo commented 10 years ago

I can't understand what you said..@_@..My English is so bad.

jonharmon commented 9 years ago

I was getting the same thing and it was because my menu was at the very top of the page. isStuck class is added when you scroll down but when you scroll back up you can't scroll past it so the class never gets removed. To test this I added 1px margin to the top of my menu and it now removes the isStuck class correctly.