react-simple-game-engine 0.1.83 → 0.1.84

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.
Files changed (2) hide show
  1. package/lib/utils.js +3 -3
  2. package/package.json +1 -1
package/lib/utils.js CHANGED
@@ -141,12 +141,12 @@ export function parallel(items, each, limit) {
141
141
  }
142
142
  export function useWindowSize() {
143
143
  var _a = useState({
144
- width: window.outerWidth,
145
- height: window.outerHeight,
144
+ width: window.innerWidth,
145
+ height: window.innerHeight,
146
146
  }), size = _a[0], setSize = _a[1];
147
147
  useEffect(function () {
148
148
  function onResize() {
149
- setSize({ width: window.outerWidth, height: window.outerHeight });
149
+ setSize({ width: window.innerWidth, height: window.innerHeight });
150
150
  }
151
151
  window.addEventListener("resize", onResize);
152
152
  return function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-simple-game-engine",
3
- "version": "0.1.83",
3
+ "version": "0.1.84",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib",