-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
[BUG] dnd bug in playground page #61
Comments
@hasanharman @honuuk can I work on it? |
when click try to drag with 2-3 field in single row and try to solving this issue then, i got another issue where i try to drag one of the field inside 1 row then its duplicate, according to shared image duplicate changes are shown in preview tab also |
Sure! |
All right, its geniuses issue @honuuk , but if @hasanharman want to resolve this issue, then only i will try, otherwise its waste of time and hardwork |
Hi to all, I'll work on this week, thanks guys for everything 🙌 @honuuk I saw your contribution, you can finish this task if you want or I can continue where you left |
@hasanharman @sujal12344 |
Can I work on this issue @hasanharman @honuuk ?? |
@sujal12344 |
@hasanharman can i do it? |
@sujal12344 Sure please go 🚀 |
Hey, @hasanharman @honuuk first of all sorry for late response. This issue stems from Framer Motion itself, meaning it cannot be resolved within Framer Motion. As mentioned in the image above, the Motion community also advises against using it for this purpose. Instead, they recommend using DnD Kit as a more suitable alternative. |
@sujal12344 @hasanharman |
@hasanharman
Hi, Hasan. I hope you are doing well.
I found a bug on the playground page. This occurs when there are two or more fields in a single row, and one of the fields is dragged to the Y-axis. Please check out video below.
DND_BUG_VIDEO.mov
I figured out that's why the X and Y axes have separate drag buttons.
However, it seems likely that some users might not see these buttons right away, as I didn’t, and might consider it a bug.
As I looked into the functionality to fix this issue, I had a few thoughts:
Improved Drag Functionality:
I think it would be better if fields could be dragged to both the X and Y axes without bugs. For example, like a 2x1 matrix with one field in Row 1 and another in Row 2, dragging the lower row's field upward could either swap the rows or merge the fields into a single row, depending on the drag distance. I’m not sure if I can implement this feature.😅
But please let me know if you like the idea. I’ll give it a try.
Limit Count of Field In One Row:
How about limiting the number of fields that can be added to a single row to 2 or 3 at most? In my opinion, a maximum of 2 fields per row should suffice since it’s rare to see 3 fields used in a single row.
Please let me know what you think about my suggestions. If you agree, I’ll try implementing the proposed changes.
Thanks!
The text was updated successfully, but these errors were encountered: