Skip to content

documentation - detecting and destroying jscroll #172

@opensourceame

Description

@opensourceame

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions