eduardomb / scroll-up-bar

The scroll up bar plugin (jQuery) hides the top bar when scrolling down, and show it when scrolling up. It's specially useful on mobile interfaces to save some precious space.
MIT License
613 stars 63 forks source link

Add "remove" method for destroying #8

Closed heroheman closed 10 years ago

heroheman commented 10 years ago

Hi, I use your script and its working very smooth so far. Nice Work. But i want to unbind it, if the viewport is under 768px. I used $(window).unbind('scroll') but its killing all my scrollevents (like waypoint.js).

I think a destroy method is almost always useful, so for me its an "issue" :)

eduardomb commented 10 years ago

Hi, Florenz.

This is definitively an issue. Thanks for pointing out.

I'll implement the method $.scrollupbar.destroy() to handle it.

eduardomb commented 10 years ago

Release 0.3.0 is published! It implements the destroy method.

Checkout the docs: https://github.com/eduardomb/scroll-up-bar/blob/master/README.md

heroheman commented 10 years ago

ah nice, works great, thank you for the fast implementation!