-
-
Notifications
You must be signed in to change notification settings - Fork 637
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
How to display snap distance when drag? #142
Comments
It doesn't provide the following features yet. I will add this feature in a future version. |
Thanks you! |
Moveable 0.14.0 is released. Thank you :)
|
@daybrush See this demo: https://codesandbox.io/s/react-moveable-with-full-drag-select-wb0so and try drag "test_33" element. When there's at least one SAME size element with DRAGGING ELEMENT, snap display 3 snap lines. This is not necessary. Thanks you! |
@ladifire |
…#177) #141 #142 #172 #173 #179 * fix: fix snap directions * fix: fix sizeDist for otherDirections * refactor: fix resizable snap * refactor: remove checkOneWayDist * refactor: fix one way resize snap * refactor: fix snap resize for keepRatio * refactor: snap resize for [0, 0] * fix: fix two way direction * feat: add requestSigns * fix: fix request snap * fix: fix request for no request * fix: fix resize snap for request * fix: fix snap for scale * fix: fix size snap for shake problem * feat: add isDisplaySnapDigit props * fix: fix package script * feat: add innerBounds props #172 * feat: add innerBounds feature #172 * feat: add innerBounds feature #172 * fix: fix innerBounds' direction * fix: fix innerBounds' size offset * fix: fix bounds for fixed position * fix: fix parseFloat * feat: add innerBounds for drag * feat: add innerBound drag snap * fix: fix fixedPosition * refactor: split snappable * fix: fix innerBound for drag * fix: fix throttleRotateDrag's work * fix: fix snapInfo to snapDrag * refactor: fix snapRotate * fix: fix throttleRotateDrag snap * fix: fix rotatable delta * fix: fix rotatable for innerBounds * feat: show innerBounds guidelines * fix: remove useless code
Use https://daybrush.com/moveable/release/latest/doc/Moveable.html#snapDigit |
Please tell me how to display snap distance as following photo:

Where: sfs is distance (px)
The text was updated successfully, but these errors were encountered: