-
Notifications
You must be signed in to change notification settings - Fork 108
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
Add options for constrain by each axis #429
base: master
Are you sure you want to change the base?
Add options for constrain by each axis #429
Conversation
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.
So what's the usecase here? should the element be allowed to leave the origin dropzone?
How is keyboard dragging affected?
How is highlighting potential drop targets affected?
For example, I use this changes for tab swap by mouse and tabs should be moving only by X coordinate.
What does this question related to the functionality of constraiting the movement of an element along the axes by dragging with the mouse?
This has no affect on keyboard dragging. The behavior of keyboard dragging does not changed.
On highlighting potential drop targets this does not affect too. |
I'll try to explain my concern better. Let's say I have 4 dropzones of the same type organized this way: |
I think I understood. Are you talking about the behavior of the element that was dragged out of the dragzone? I think we also able to change this behavior via new property in the options. |
This feature works great for me, I'd just like to add that changing createDraggedElementFrom() should be considered so that if centreDraggedOnCursor is true it doesn't move the element in one of the constrained axises. In other words, centreDraggedOnCursor should only center an item vertically in a vertical only movement constrained list. |
good point. There are many considerations and every new feature has to work
in harmony with what came before. I am glad it's working great for you but
I can't merge it in this way.
…On Sat, Feb 11, 2023 at 6:41 AM Segovo ***@***.***> wrote:
This feature works great for me, I'd just like to add that changing
createDraggedElementFrom() should be considered so that if
centreDraggedOnCursor is true it doesn't move the element in one of the
constrained axises. In other words, centreDraggedOnCursor should only
center an item vertically in a vertical only movement constrained list.
—
Reply to this email directly, view it on GitHub
<#429 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE4OZC5FK3VNLFC7MXAIKJ3WW2KX3ANCNFSM6AAAAAAUOCULL4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Related #305