chessboardjsx
chessboardjsx copied to clipboard
calcWidth , the zoom feature and the yellow highlight
- Requesting addition of an example using
calcWidthfunction prop. - My piece drag is pretty 'laggy'. How can one make it faster ?
- How to remove the zoom when moving the pieces.
- Any chance it can be rebuilt to use the newer react versions
Thank you. This lib came in handy.
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.
+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.
This library is no longer maintained. Please try https://github.com/ruilisi/react-chessground for a more stable chessboard.