-
-
Notifications
You must be signed in to change notification settings - Fork 616
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
Drag using keyboard arrow keys. (Angular) #141
Comments
I think that's a good idea. I planned to add it later, but it's not easy. This may seem a bit late, but I will try to do it fast. |
@daybrush No issues. 👍 Thanks. |
…#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
Added https://daybrush.com/moveable/release/latest/doc/Moveable.html#request Draggablehttps://daybrush.com/moveable/release/latest/doc/Moveable.Draggable.html#request Resizablehttps://daybrush.com/moveable/release/latest/doc/Moveable.Resizable.html#request Scalablehttps://daybrush.com/moveable/release/latest/doc/Moveable.Scalable.html#request Rotatablehttps://daybrush.com/moveable/release/latest/doc/Moveable.Rotatable.html#request Applied to the main demo. https://daybrush.com/moveable/ Lines 60 to 77 in 482e8d6
|
In the main demo, if the keyboard arrow is held down, the feature eventually breaks for me (Chrome, latest ver.). I think this is a bug. Can you please investigate? Thanks for this new feature! |
On top of keyboard support to drag item, I think it would be better to consider and display Horizontal, Vertical, Element guidelines suggestion. Just like how it does when we drag using Mouse. Please let me know, if this feature is already there. |
@daybrush is it possible to apply this request method, or a way to move the element with arrow keys, in this demo https://codesandbox.io/s/react-moveable-demo-jl69c?file=/src/index.js:4834-4840 ? |
Hello, is it possible to pass custom parameters to the request API? After passing it can this parameter be received in the onDragEnd event of the Moveable component? Here is my code: movableRef?.current?.request("draggable", {
x: layoutItem!.position![0],
y: layoutItem!.position![1],
//this is my custom params
datas: {backoff: true}
}, true);
<Moveable ref={this.movableRef}
//...
// I want to accept param here. Can it be supported at this time?
onDragEnd={this.onDragEnd}
//...
/> |
For more better user experience I want to drag target on keyboard arrow keys. Is there any way to drag using keyboard arrow keys. I am in the middle of following.
Thanks in advance.
The text was updated successfully, but these errors were encountered: