react-chessboard-ui 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2139,7 +2139,7 @@ var ChessBoardControlLayout = function ChessBoardControlLayout(props) {
2139
2139
  if (pressed) {
2140
2140
  var pageX = event.pageX,
2141
2141
  pageY = event.pageY;
2142
- onGrabbing(pageX, pageY);
2142
+ onGrabbing(pageX, pageY - window.scrollY);
2143
2143
  }
2144
2144
  };
2145
2145
  var handleContextMenu = function handleContextMenu(cellPos) {