Skip to content

Split.js: drag is not stopped before destroy #790

Description

@jdospina95

When you are dragging the gutter and the split gets destroyed you can continue to drag and it breaks the layout. The dragging should be stopped before destroying it, it does not make sense to allow users to keep dragging the gutter if it does not exist anymore. I have prepared a codepen to reproduce the issue, it will destroy the split after 5 seconds so just drag it around (keeping the mouse clicked) until the gutter disappears, and then you can continue to drag it until you let the mouse go.

destroy() should call stopDragging()

Codepen

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions