Skip to content

Destroy doesn't unbind the scroll events #165

@alvarotrigo

Description

@alvarotrigo

It seems that the destroy option doesn't completely destroy the plugin effect on the site.

For example, if you try to destroy the plugin and then scroll over the previously scrollable content, the site scrolling functionality stops working. You will be able to scroll using the scrollbar, not not by using the mouse wheel / trackpad.

Here's a reproduction of the bug.

Notice a couple of things:

  • Scrolling with mouse wheel / trackpad over the previously scrollable element blocks the scrolling.
  • Scrolling outside the previously scrollable element works as expected.
  • If you scroll the slimScroll until its bottom before destroying it, when destroying it, it works properly as it should in any occasion.

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