Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

documentation - detecting and destroying jscroll #172

Open
opensourceame opened this issue Oct 5, 2020 · 0 comments
Open

documentation - detecting and destroying jscroll #172

opensourceame opened this issue Oct 5, 2020 · 0 comments

Comments

@opensourceame
Copy link

I think it would be worth adding to the documentation, both in the README and on the jscroll.com website, how you can detect if jscroll is being applied and how to destroy it. This was important for me to know when to destroy the jscroll when switching from a scrolling tiles view to a list view. Something like this:

if ($('#content-container').data('jscroll') && view != 'tiles') {
  $('#content-container').jscroll.destroy();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant