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

Prevent flashing drop indicator between two nearest list item #192

Open
zmirnes opened this issue Feb 27, 2025 · 3 comments
Open

Prevent flashing drop indicator between two nearest list item #192

zmirnes opened this issue Feb 27, 2025 · 3 comments

Comments

@zmirnes
Copy link

zmirnes commented Feb 27, 2025

How to prevent drop indicator flashing when I drag item between list items?

20250227-1215-28.0383018.mp4
@zmirnes zmirnes changed the title Prevent flashing drop indicator between list items Prevent flashing drop indicator between two nearest list item Feb 27, 2025
@michaelabrahamian
Copy link
Collaborator

Hey @zmirnes, can you please share a reproduction environment, such as a Codesandbox? Otherwise it's a bit difficult for us to help you :)

@declan-warn
Copy link
Collaborator

If the flash is because of gaps between drop targets then stickiness could prevent this: https://atlassian.design/components/pragmatic-drag-and-drop/core-package/drop-targets#getissticky

dropTargetForElements({
    element: myElement,
    getIsSticky: () => true,
});

@zmirnes
Copy link
Author

zmirnes commented Mar 6, 2025

Today I will share a reproduction environment to show what is problem.

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

3 participants