ronds-metadata 1.3.44 → 1.3.45

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,13 +2,14 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
2
2
  /*
3
3
  * @Author: wangxian
4
4
  * @Date: 2022-06-24 08:44:41
5
- * @LastEditTime: 2022-06-24 16:25:38
5
+ * @LastEditTime: 2024-05-27 17:07:08
6
6
  */
7
7
  import React from 'react';
8
8
  function syncScroll(target, others, TopLeft, WidthHeight) {
9
9
  var percentage = target["scroll".concat(TopLeft)] / (target["scroll".concat(WidthHeight)] - target["offset".concat(WidthHeight)]);
10
10
  window.requestAnimationFrame(function () {
11
11
  others.forEach(function (el) {
12
+ if (!el) return;
12
13
  el["scroll".concat(TopLeft)] = Math.round(percentage * (el["scroll".concat(WidthHeight)] - el["offset".concat(WidthHeight)]));
13
14
  });
14
15
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "public": true,
3
3
  "name": "ronds-metadata",
4
- "version": "1.3.44",
4
+ "version": "1.3.45",
5
5
  "scripts": {
6
6
  "start": "dumi dev",
7
7
  "docs:build": "dumi build",