intelicoreact 0.2.14 → 0.2.15
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.
|
@@ -228,16 +228,12 @@ var NavLine = function NavLine(_ref) {
|
|
|
228
228
|
e.stopPropagation();
|
|
229
229
|
var deltaY = e.deltaY;
|
|
230
230
|
deltaY > 0 ? pushScrollTask('next') : pushScrollTask('prev');
|
|
231
|
-
};
|
|
232
|
-
|
|
233
|
-
(
|
|
234
|
-
|
|
231
|
+
}; // useEffect(() => {
|
|
232
|
+
// if (!wrapperRef?.current) return false;
|
|
233
|
+
// wrapperRef?.current?.addEventListener("mousewheel", onWheel, { passive: false });
|
|
234
|
+
// }, [wrapperRef]);
|
|
235
|
+
// Count Total NavLine Items Width
|
|
235
236
|
|
|
236
|
-
if (!(wrapperRef !== null && wrapperRef !== void 0 && wrapperRef.current)) return false;
|
|
237
|
-
wrapperRef === null || wrapperRef === void 0 ? void 0 : (_wrapperRef$current = wrapperRef.current) === null || _wrapperRef$current === void 0 ? void 0 : _wrapperRef$current.addEventListener("mousewheel", onWheel, {
|
|
238
|
-
passive: false
|
|
239
|
-
});
|
|
240
|
-
}, [wrapperRef]); // Count Total NavLine Items Width
|
|
241
237
|
|
|
242
238
|
(0, _react.useEffect)(function () {
|
|
243
239
|
var _navLineItems$0$ref$c, _navLineItems$, _navLineItems$$ref, _navLineItems$$ref$cu;
|
|
@@ -261,9 +257,9 @@ var NavLine = function NavLine(_ref) {
|
|
|
261
257
|
}, [navLineItems === null || navLineItems === void 0 ? void 0 : navLineItems.length]); // Count Wrapper Width
|
|
262
258
|
|
|
263
259
|
(0, _react.useEffect)(function () {
|
|
264
|
-
var _wrapperRef$current$g, _wrapperRef$
|
|
260
|
+
var _wrapperRef$current$g, _wrapperRef$current, _wrapperRef$current$g2;
|
|
265
261
|
|
|
266
|
-
setWrapperRefWidth((_wrapperRef$current$g = wrapperRef === null || wrapperRef === void 0 ? void 0 : (_wrapperRef$
|
|
262
|
+
setWrapperRefWidth((_wrapperRef$current$g = wrapperRef === null || wrapperRef === void 0 ? void 0 : (_wrapperRef$current = wrapperRef.current) === null || _wrapperRef$current === void 0 ? void 0 : (_wrapperRef$current$g2 = _wrapperRef$current.getBoundingClientRect()) === null || _wrapperRef$current$g2 === void 0 ? void 0 : _wrapperRef$current$g2.width) !== null && _wrapperRef$current$g !== void 0 ? _wrapperRef$current$g : 0);
|
|
267
263
|
}, [wrapperRef]); //Init NavLine Items
|
|
268
264
|
|
|
269
265
|
(0, _react.useEffect)(function () {
|
|
@@ -153,7 +153,7 @@ var TagList = function TagList(_ref) {
|
|
|
153
153
|
itemRef: /*#__PURE__*/(0, _react.createRef)()
|
|
154
154
|
});
|
|
155
155
|
}));
|
|
156
|
-
}, [items]); // Count Row Tags
|
|
156
|
+
}, [items.length]); // Count Row Tags
|
|
157
157
|
|
|
158
158
|
(0, _react.useEffect)(function () {
|
|
159
159
|
if (!withToggle) return false;
|