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

Cursor not-allowed arePiecesDraggable and onPieceDrop not triggering #167

Open
loisperrigon opened this issue Oct 13, 2024 · 0 comments
Open

Comments

@loisperrigon
Copy link

Hello,

First of all, thank you very much for your work on this library. It’s incredibly useful and well designed!

However, I noticed an issue. When I drag and drop a piece, a "not-allowed" icon appears. If I accidentally drop the piece before the icon disappears, the logic in the onPieceDrop prop is not triggered.

image

Initially, I thought the issue might be in my own code. However, I was able to reproduce the same bug on the website mentioned in the README:
https://chessopenings.co.uk/traps/Ruy%20Lopez

image

It seems that when the drop happens too quickly, the logic in onPieceDrop is not executed.

Could you please look into this? Thank you!

@loisperrigon loisperrigon changed the title Cursor not-allowed onPieceDrop Cursor not-allowed onPieceDrop and onPieceDrop not triggering Oct 13, 2024
@loisperrigon loisperrigon changed the title Cursor not-allowed onPieceDrop and onPieceDrop not triggering Cursor not-allowed arePiecesDraggable and onPieceDrop not triggering Oct 13, 2024
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

1 participant