ronds-metadata 1.3.45 → 1.3.46
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ 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: 2024-05-27
|
5
|
+
* @LastEditTime: 2024-05-27 19:14:55
|
6
6
|
*/
|
7
7
|
import React from 'react';
|
8
8
|
function syncScroll(target, others, TopLeft, WidthHeight) {
|
@@ -71,14 +71,14 @@ export function useSyncScrollByRefs(refsRef, _ref3) {
|
|
71
71
|
}
|
72
72
|
locksRef.current = refsRef.current.length - 1;
|
73
73
|
var others = refsRef.current.reduce(function (result, ref) {
|
74
|
-
if (ref
|
74
|
+
if (ref && ref !== target) result.push(ref);
|
75
75
|
return result;
|
76
76
|
}, []);
|
77
77
|
if (vertical) syncVerticalScroll(target, others);
|
78
78
|
if (horizontal) syncHorizontalScroll(target, others);
|
79
79
|
}
|
80
80
|
var elements = refsRef.current.reduce(function (result, ref) {
|
81
|
-
if (ref
|
81
|
+
if (ref) result.push(ref);
|
82
82
|
return result;
|
83
83
|
}, []);
|
84
84
|
elements.forEach(function (el) {
|