@kkcompany/app-ui 0.1.28 → 0.1.29
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/dist/index.cjs +7 -2
- package/dist/index.mjs +7 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -267,8 +267,13 @@ const BannerRender = ({ children, className = "", autoplay = false, autoplayInte
|
|
|
267
267
|
const movingWidth = Math.abs(movingVector);
|
|
268
268
|
if (movingVector > 0 && movingWidth > triggerWidth && hasPrev) jumpTo(currentPosition - 1);
|
|
269
269
|
else if (movingVector < 0 && movingWidth > triggerWidth && hasNext) jumpTo(currentPosition + 1);
|
|
270
|
-
else if (movingVector !== 0)
|
|
271
|
-
|
|
270
|
+
else if (movingVector !== 0) {
|
|
271
|
+
dispatch({
|
|
272
|
+
type: "DRAG",
|
|
273
|
+
payload: { dragOffset: 0 }
|
|
274
|
+
});
|
|
275
|
+
resume();
|
|
276
|
+
} else resume();
|
|
272
277
|
dragRef.current = {
|
|
273
278
|
dragging: false,
|
|
274
279
|
dragXFrom: -1,
|
package/dist/index.mjs
CHANGED
|
@@ -267,8 +267,13 @@ const BannerRender = ({ children, className = "", autoplay = false, autoplayInte
|
|
|
267
267
|
const movingWidth = Math.abs(movingVector);
|
|
268
268
|
if (movingVector > 0 && movingWidth > triggerWidth && hasPrev) jumpTo(currentPosition - 1);
|
|
269
269
|
else if (movingVector < 0 && movingWidth > triggerWidth && hasNext) jumpTo(currentPosition + 1);
|
|
270
|
-
else if (movingVector !== 0)
|
|
271
|
-
|
|
270
|
+
else if (movingVector !== 0) {
|
|
271
|
+
dispatch({
|
|
272
|
+
type: "DRAG",
|
|
273
|
+
payload: { dragOffset: 0 }
|
|
274
|
+
});
|
|
275
|
+
resume();
|
|
276
|
+
} else resume();
|
|
272
277
|
dragRef.current = {
|
|
273
278
|
dragging: false,
|
|
274
279
|
dragXFrom: -1,
|