@dreamcommerce/aurora 2.7.1-1 → 2.7.1-2

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.
@@ -53,12 +53,12 @@ const Content = ({ headerComponent, headerGoBackText, headerGoBackIcon, children
53
53
  };
54
54
  }, [contentRef.current]);
55
55
  const checkIfIsOutsideTopViewport = () => {
56
- if (!contentRef.current || !bounding)
56
+ if (!contentRef.current || !bounding || isOpen)
57
57
  return;
58
58
  return bounding.top <= 0;
59
59
  };
60
60
  const checkIfIsOutsideBottomViewport = () => {
61
- if (!contentRef.current || !bounding)
61
+ if (!contentRef.current || !bounding || isOpen)
62
62
  return;
63
63
  const elementHeight = bounding.height;
64
64
  return elementHeight + bounding.top > window.innerHeight + windowYScroll;
@@ -44,12 +44,12 @@ const Content = ({ headerComponent, headerGoBackText, headerGoBackIcon, children
44
44
  };
45
45
  }, [contentRef.current]);
46
46
  const checkIfIsOutsideTopViewport = () => {
47
- if (!contentRef.current || !bounding)
47
+ if (!contentRef.current || !bounding || isOpen)
48
48
  return;
49
49
  return bounding.top <= 0;
50
50
  };
51
51
  const checkIfIsOutsideBottomViewport = () => {
52
- if (!contentRef.current || !bounding)
52
+ if (!contentRef.current || !bounding || isOpen)
53
53
  return;
54
54
  const elementHeight = bounding.height;
55
55
  return elementHeight + bounding.top > window.innerHeight + windowYScroll;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@dreamcommerce/aurora",
3
3
  "packageManager": "yarn@3.2.0",
4
4
  "sideEffects": false,
5
- "version": "2.7.1-1",
5
+ "version": "2.7.1-2",
6
6
  "description": "aurora",
7
7
  "author": "k0ssak",
8
8
  "license": "MIT",