Skip to content
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

How not to use the center of draggable as threshold when dragging horizontally to a different list #1574

Closed
ZYinMD opened this issue Oct 30, 2019 · 4 comments

Comments

@ZYinMD
Copy link

ZYinMD commented Oct 30, 2019

demo

In this demo, I need to move items into different folders. Each folder name on the left is a small droppable, so I can simply drop items into them. However, my items are so wide I can't drag more than 1/2 out of the list, so they're still dropping back to the list. Is there a way to override the 1/2 rule?

If not, I guess I could just go to node_modules and change the source code because this is all I need for dnd in my project. Is it feasible? Where should I look? (I'm still on v11.0.4 for the sake of dynamic addition/removal)

Another thought is that since I have a very small drag handle, can I tell rbd to use the drag handle's dimensions as opposed to the whole draggable?

Thanks!

@alexreardon
Copy link
Collaborator

Let's track this here: #1505

@ZYinMD
Copy link
Author

ZYinMD commented Nov 5, 2019

Hi @alexreardon , thanks for your reply.

I don't see any remote connection between this issue and #1505. The "1/2 threshold" here is not about combining. It happens when dragging horizontally, the item needs to be dragged at least 1/2 outside of the list border to be considered "out". As the gif shows, each folder on the left is a droppable, but the draggables can't reach there.

I understand it's like not customizable, so I also asked if I want to try going into node_modules to change the source code just for my specific project (hopefully a one liner), where should I look.

@alexreardon
Copy link
Collaborator

I don't see any remote connection between this issue and #1505

Please keep your language friendly.

I can see that you are trying to move a large item into a small area. I think this falls into #930

@ZYinMD ZYinMD changed the title Is there a way to override the 1/2 width threshold? How not to use the center of draggable as threshold when dragging horizontally to a different list Nov 5, 2019
@ZYinMD
Copy link
Author

ZYinMD commented Nov 5, 2019

Hi @alexreardon sorry about that, I edited the title to better describe summarize the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants