Skip to content

Sometimes can't drop first item to last when only 2 items existing #155

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

Open
lateek35 opened this issue May 5, 2025 · 1 comment
Open

Comments

@lateek35
Copy link

lateek35 commented May 5, 2025

I took me a while to get it but I think that in case where only 2 items exist, it will prevent from drag first item to last positon because the drop area doesn't seems reachable.

I made this reproduction

Enregistrement.de.l.ecran.2025-05-05.a.20.36.44.mov

Sometimes it will work, but it depends on factors that aren't necessarily easy to achieve. You need to start dragging the element as close as possible to the boundingBox of the element; if you start dragging too low, it will be impossible. Then, depending on the distance from the top of the boundingBox of the selected element, the possible area to drop it below sometimes requires being very precise (a few pixels).

@phphe
Copy link
Owner

phphe commented May 9, 2025

set min-height with css for tree, such as 100px.

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

No branches or pull requests

2 participants