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

fix: mouse status is now checked when entering document #7

Merged
merged 1 commit into from
Jun 18, 2020

Conversation

b-zurg
Copy link
Owner

@b-zurg b-zurg commented Jun 18, 2020

This was an interesting problem to solve, and ended up handling it by simply assuming that if the mouse button is down when entering the document then the user was dragging as it's highly unlikely that a user would press down and then drag into the document.

This works pretty well. If the mouse is up when entering but it was previously dragging then it simply stops the drag and saves the state.

@b-zurg b-zurg added fix Bug or problem 🔥 high High Priority labels Jun 18, 2020
@b-zurg b-zurg self-assigned this Jun 18, 2020
@b-zurg b-zurg merged commit ebc11ae into master Jun 18, 2020
@b-zurg
Copy link
Owner Author

b-zurg commented Jun 18, 2020

Closes #3

@b-zurg b-zurg linked an issue Jun 18, 2020 that may be closed by this pull request
@github-actions
Copy link

🎉 This PR is included in version 1.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@b-zurg b-zurg deleted the 3/dragging-not-stopping branch June 18, 2020 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug or problem 🔥 high High Priority released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix: dragging does not always stop when mouse click is done
1 participant