-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
feat: improve elbow arrow keyboard move #8392
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This solves the specific issue this PR references, but don't we want to allow moving elbow arrows bound on only one end if the connected end boundable is also in the selection @dwelle ?
I agree - that would be ideal, however, this PR is already a big improvement. |
I've modified the solution to include @mtolmacs's case as well. I think this is much better from a UX perspective. |
I can live with this, but I defer to @dwelle to give final approval. Thanks for the fix and flexibility! |
Haven't checked code, but from checking the preview it looks now arrow behavior is aligned to dragging behavior, which is what we want? Or is there something I'm missing? |
Yes, it makes sense to have the same behavior IMO. |
Just to confirm, the current code in the PR fully aligns keyboard move with the dragging behavior for elbow arrows. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
Fixes: Keyboard arrow keys stop to move elements when the group includes an elbow arrow #8387
Having looked at the code I concluded that this is not a bug, but a too restrictive feature. However, we can make the restriction more targeted/relaxed even without touching the arrow move logic. The keyboard move should only be restricted if the start or end element is not part of the selection.