react-chessboard-ui 0.1.5 → 0.1.6
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 +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1 -0
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1958,6 +1958,7 @@ var getFiguresByColor = function getFiguresByColor(color, forPawnTransform) {
|
|
|
1958
1958
|
});
|
|
1959
1959
|
};
|
|
1960
1960
|
var correctGrabbingPosByScroll = function correctGrabbingPosByScroll(pos) {
|
|
1961
|
+
if (typeof window === 'undefined') return pos;
|
|
1961
1962
|
return [pos[0] - window.scrollX, pos[1] - window.scrollY];
|
|
1962
1963
|
};
|
|
1963
1964
|
|