pixuireactcomponents 1.5.31 → 1.5.32
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.
package/package.json
CHANGED
|
@@ -110,7 +110,7 @@ export function Carousel(props) {
|
|
|
110
110
|
var nextInterval = useRef();
|
|
111
111
|
var _r = useState(true), showTransition = _r[0], setShowTransition = _r[1];
|
|
112
112
|
var _s = useState([0, 0]), gestureoffset = _s[0], setGestureoffset = _s[1];
|
|
113
|
-
var offset = useMemo(function () { return -(isVertical ? compHeight : compWidth) * showIndex; }, [showIndex]);
|
|
113
|
+
var offset = useMemo(function () { return -(isVertical ? compHeight : compWidth) * showIndex; }, [showIndex, compHeight, compWidth]);
|
|
114
114
|
var itemBoxStyle = {
|
|
115
115
|
minWidth: compWidth + 'px',
|
|
116
116
|
minHeight: compHeight + 'px',
|