Skip to content

Commit

Permalink
Merge pull request #10 from Tal500/fix-double-click-mouse-down
Browse files Browse the repository at this point in the history
Update isMouseDown = false on double click.
  • Loading branch information
orefalo authored Jun 20, 2022
2 parents ff16ba0 + a55d9fb commit 762badd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/Splitpanes.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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[] {
Expand Down

0 comments on commit 762badd

Please sign in to comment.