chayns-api 3.5.0-beta.0 → 3.5.1

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.
@@ -8,8 +8,8 @@ var _lodash = _interopRequireDefault(require("lodash.throttle"));
8
8
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
9
  const setTappHeight = setHeight => {
10
10
  document.documentElement.style.overflow = 'hidden';
11
- void setHeight(document.body.offsetHeight);
12
- let oldHeight = 0;
11
+ let oldHeight = document.body.offsetHeight;
12
+ void setHeight(oldHeight);
13
13
  const handleResize = () => {
14
14
  const {
15
15
  offsetHeight
@@ -1,8 +1,8 @@
1
1
  import throttle from 'lodash.throttle';
2
2
  export const setTappHeight = setHeight => {
3
3
  document.documentElement.style.overflow = 'hidden';
4
- void setHeight(document.body.offsetHeight);
5
- let oldHeight = 0;
4
+ let oldHeight = document.body.offsetHeight;
5
+ void setHeight(oldHeight);
6
6
  const handleResize = () => {
7
7
  const {
8
8
  offsetHeight
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chayns-api",
3
- "version": "3.5.0-beta.0",
3
+ "version": "3.5.1",
4
4
  "description": "new chayns api",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",