chessboardjsx icon indicating copy to clipboard operation
chessboardjsx copied to clipboard

calcWidth , the zoom feature and the yellow highlight

Open cngeru opened this issue 5 years ago • 3 comments
trafficstars

  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.

cngeru avatar Jun 27 '20 14:06 cngeru

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.

Nathaniel-Fernandes avatar Jun 28 '20 18:06 Nathaniel-Fernandes

+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.

OulipianSummer avatar Oct 21 '20 20:10 OulipianSummer

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

willb335 avatar Oct 21 '20 20:10 willb335