Split.js: drag is not stopped before destroy
jdospina95 opened this issue · 0 comments
jdospina95 commented
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()