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

calcWidth , the zoom feature and the yellow highlight #55

Open
cngeru opened this issue Jun 27, 2020 · 3 comments
Open

calcWidth , the zoom feature and the yellow highlight #55

cngeru opened this issue Jun 27, 2020 · 3 comments

Comments

@cngeru
Copy link

cngeru commented Jun 27, 2020

  1. Requesting addition of an example using calcWidth function prop.
  2. My piece drag is pretty 'laggy'. How can one make it faster ?
  3. How to remove the zoom when moving the pieces.
  4. Any chance it can be rebuilt to use the newer react versions

Thank you. This lib came in handy.

@Nathaniel-Fernandes
Copy link

Hi! For your #2 (piece drag is laggy): My best guess is there is something wrong with the monitor.getSourceClientOffset() in CustomDragLayer.js. As this is a function given by react-dnd/html-5-backend, I believe it's a bug from an outdated version of react-dnd.

Chessboardjsx uses react-dnd version 2.6 but the current react-dnd version is 11.1.x.

@OulipianSummer
Copy link

+1 on the calcWidth example. I keep running into issues with this prop and I can't find a good example of how it works.

@willb335
Copy link
Owner

This library is no longer maintained. Please try https://github.com/ruilisi/react-chessground for a more stable chessboard.

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

4 participants