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

Make it easier to overcome the magnetic force when grabbing at a magnetic mark and dragging away #1

Open
loucadufault opened this issue Sep 3, 2021 · 0 comments

Comments

@loucadufault
Copy link
Owner

Note that clicking right next to the magnetic mark should not trigger this effect, only dragging away from the magnetic mark should.

So long as we can get the previous value in the onChange hook (as well as the newValue), then we can check if the previous value was both 1) closer to a magnetic mark than the newValue (but not on the magnetic mark) and 2) in the (potentially scaled) radius of that magnetic mark. Then we would know that we were escaping that magnetic mark, and to continue escaping it.

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

No branches or pull requests

1 participant