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

Drag From Outside, there is a probability of extra blocks #4

Open
duanmw opened this issue May 10, 2023 · 2 comments
Open

Drag From Outside, there is a probability of extra blocks #4

duanmw opened this issue May 10, 2023 · 2 comments

Comments

@duanmw
Copy link

duanmw commented May 10, 2023

Examples of official website

image

@masaringr
Copy link

Examples of official website

image

did you found the solutions of this issue?

@SamX23
Copy link

SamX23 commented Apr 1, 2024

For me, this seems because the mouseAt is not reset, so if we had dropped an item, the previous coordinate will stay, and if we drag an item, it will add a new one at a glance.

What I did was to reset the mouseAt position on dragEnd

      // reset mouse position
      mouseAt.x = -1
      mouseAt.y = -1

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