Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jdospina95 opened this issue Aug 30, 2023 · 0 comments
Open

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

jdospina95 opened this issue Aug 30, 2023 · 0 comments

Comments

@jdospina95
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant