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.js
CHANGED
|
@@ -1961,6 +1961,7 @@ var getFiguresByColor = function getFiguresByColor(color, forPawnTransform) {
|
|
|
1961
1961
|
});
|
|
1962
1962
|
};
|
|
1963
1963
|
var correctGrabbingPosByScroll = function correctGrabbingPosByScroll(pos) {
|
|
1964
|
+
if (typeof window === 'undefined') return pos;
|
|
1964
1965
|
return [pos[0] - window.scrollX, pos[1] - window.scrollY];
|
|
1965
1966
|
};
|
|
1966
1967
|
|