diff --git a/src/lib/Splitpanes.svelte b/src/lib/Splitpanes.svelte index adbd5f56..99db8ee8 100644 --- a/src/lib/Splitpanes.svelte +++ b/src/lib/Splitpanes.svelte @@ -309,6 +309,10 @@ dispatch('pane-maximize', splitterPane); dispatchSizeEvent('resized'); + + // onMouseUp might not be called on the second click, so update the mouse state. + // TODO: Should also check and unbind events, but better IMO to not bind&unbind on every click, so ignored for now. + isMouseDown = false; } function prepareSizeEvent(): IPaneSizingEvent[] {