stickUp icon indicating copy to clipboard operation
stickUp copied to clipboard

isStuck is not removed

Open cardeo opened this issue 11 years ago • 4 comments

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

cardeo avatar Sep 09 '14 19:09 cardeo

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

muya avatar Oct 23 '14 11:10 muya

@muya no not yet

cardeo avatar Oct 23 '14 16:10 cardeo

I can't understand what you said..@[email protected] English is so bad.

yeyuguo avatar Oct 24 '14 00:10 yeyuguo

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.

jonharmon avatar Mar 06 '15 01:03 jonharmon