willb335 / chessboardjsx

:black_square_button: Chessboard built for React
https://chessboardjsx.com
MIT License
267 stars 79 forks source link

calcWidth , the zoom feature and the yellow highlight #55

Open cngeru opened 4 years ago

cngeru commented 4 years ago
  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 commented 4 years ago

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 commented 3 years ago

+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 commented 3 years ago

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