Skip to content

How to destroy the slimScroll only from parent not from children #182

@3gwebtrain

Description

@3gwebtrain

I would like to destroy the slimScroll with the following condition, it works fine.

if(this.spaceFinder(this.clippings)  < this.clippings.innerHeight() ) {
    this.clippings.slimScroll({destroy:true});
    //remove from all childrens too..
}

But the issue is this is removing the all slimScroll objects from the children too.

so, parent and children all are destroyed, how to avoid that?

Here is my condition, I am not using the id I using the class selector here.
go live here:
http://jsfiddle.net/L6q58tf9/32/

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