jscroll icon indicating copy to clipboard operation
jscroll copied to clipboard

documentation - detecting and destroying jscroll

Open opensourceame opened this issue 3 years ago • 0 comments

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();
}

opensourceame avatar Oct 05 '20 08:10 opensourceame