Skip to content

fix: fire dragStart event only when a cursor is moved (#283) #284

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

Conversation

nomeaning777
Copy link
Contributor

Currently, angular-split doesn't always fire dragEnd event after dragStart instead it fires gutterClick / gutterDblClick when the cursor/touch position is not moved.
In this PR, dragStart is delayed until initial cursor/touch position move to avoid such inconsistency.

fixes #283

@beeman
Copy link
Collaborator

beeman commented Dec 10, 2020

@nomeaning777 this looks awesome, great job! I'm going to give it a quick local run this weekend to make sure I fully understand the changes, and it will be deployed with v5! 🎉

@beeman beeman merged commit 00a6755 into angular-split:main Dec 18, 2020
@angular-split angular-split locked and limited conversation to collaborators Feb 18, 2021
@Jefiozie
Copy link
Member

@all-contributors please add @nomeaning777 for code.

🤖 Beep boop! This comment was added automatically by all-contributors-auto-action.
Not all contributions can be detected from Git & GitHub alone. Please comment any missing contribution types this bot missed.
...and of course, thank you for contributing! 💙

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

Successfully merging this pull request may close these issues.

dragEnd event not sent when single-clicking gutter
3 participants