ScrollToFixed icon indicating copy to clipboard operation
ScrollToFixed copied to clipboard

'scroll-to-fixed' class not removed when element is returned to normal document position

Open sheferd opened this issue 10 years ago • 2 comments

I've tried to get the class removed but my JS isn't great. any ideas?

<nav id="main-navigation" class="main-navigation cf"> $('#main-navigation').scrollToFixed();

EDIT: It seems to be affected when I change: baseClassName:"scroll-to-fixed-fixed" to baseClassName:"stf-fixed"

sheferd avatar Jan 28 '16 13:01 sheferd

Looking at what the code has become, I would say use "className": "stf-fixed" instead of "baseClassName" to have css control over fixed vs unfixed. This seems to be more consistent with what I see in the code for the fixed vs the unfixed event handling.

nobodyelses avatar Jan 28 '16 14:01 nobodyelses

Thanks, where do I apply this? I had just edited the baseClassName in the plugin js file

sheferd avatar Jan 28 '16 15:01 sheferd