Add options for constrain by each axis#429
Add options for constrain by each axis#429ChugunovRoman wants to merge 2 commits intoisaacHagoel:masterfrom
Conversation
isaacHagoel
left a comment
There was a problem hiding this comment.
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