@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 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) jumpTo(currentPosition);
271
- else resume();
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) jumpTo(currentPosition);
271
- else resume();
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kkcompany/app-ui",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "module": "dist/index.mjs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.mts",