pixuireactcomponents 1.5.4 → 1.5.5

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixuireactcomponents",
3
- "version": "1.5.4",
3
+ "version": "1.5.5",
4
4
  "description": "pixui react components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -219,7 +219,7 @@ export function Carousel(props) {
219
219
  isSideAniPlaying.current = false;
220
220
  }
221
221
  //触发onSlideChange
222
- if (!isLastCarouseItem() && !isFirstCarouseLastItem() && onSlideChange && showTransition)
222
+ if (!isLastCarouseItem() && !isFirstCarouseLastItem() && onSlideChange && !isSideAniPlaying.current)
223
223
  onSlideChange(showIndex - 1);
224
224
  // 处理首尾特殊case
225
225
  if (isLastCarouseItem()) {