Open cngeru opened 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.
+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.
calcWidth
function prop.Thank you. This lib came in handy.