@sheinx/hooks 3.4.0-beta.1 → 3.4.0-beta.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -82,7 +82,7 @@ var addResizeObserver = exports.addResizeObserver = function addResizeObserver(e
82
82
  if (height && lastHeight !== height) {
83
83
  debounceHandler(entry);
84
84
  }
85
- } else if (width && height) {
85
+ } else if (lastWidth !== width || lastHeight !== height) {
86
86
  debounceHandler(entry, {
87
87
  x: lastWidth !== width,
88
88
  y: lastHeight !== height
@@ -72,7 +72,7 @@ export var addResizeObserver = function addResizeObserver(el, handler) {
72
72
  if (height && lastHeight !== height) {
73
73
  debounceHandler(entry);
74
74
  }
75
- } else if (width && height) {
75
+ } else if (lastWidth !== width || lastHeight !== height) {
76
76
  debounceHandler(entry, {
77
77
  x: lastWidth !== width,
78
78
  y: lastHeight !== height
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/hooks",
3
- "version": "3.4.0-beta.1",
3
+ "version": "3.4.0-beta.2",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",