Skip to content

Destroy during resize throws an error #352

Open
@whiteand

Description

Hello 👋

Steps To Reproduce
I destroy locomotive scroll instance during resize and it causes _resize function to be called after destroy method.
And it throws an error.

Expected behavior
After destroy nothing fails

I've fixed this bug by cancelling requested animation frames in destroy method

#337

Can you please check my MR and apply it, if it's something that should be done.

Thank you 👊

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions