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

Update isMouseDown = false on double click. #10

Merged
merged 1 commit into from
Jun 20, 2022
Merged

Update isMouseDown = false on double click. #10

merged 1 commit into from
Jun 20, 2022

Conversation

Tal500
Copy link
Collaborator

@Tal500 Tal500 commented Jun 20, 2022

This makes the splitpanes--dragging class disappear after splitter double click.
This results in a correct folding/expanding transition on double click. Before this PR, if you double click on a splitter you'd see the pane gets expanded, but without animation.

It was kinda half my fault in my old PR #5, but it's half of the original code fault, because on double click isMouseDown is true, at least in Firefox, while it definitely should be false.
I think the reasoning is because on the second click of the double click, the browser doesn't sends the event of mouseUp, but rather sends the event of dblClick.

This makes the `splitpanes--dragging` class disappear after splitter double click.
This results in a correct folding/expanding transition on double click.
@orefalo orefalo merged commit 762badd into orefalo:master Jun 20, 2022
@Tal500 Tal500 deleted the fix-double-click-mouse-down branch June 20, 2022 19:16
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

Successfully merging this pull request may close these issues.

2 participants