@momo-kits/carousel 0.81.34 → 0.81.36

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.
Files changed (2) hide show
  1. package/index.tsx +1 -1
  2. package/package.json +2 -2
package/index.tsx CHANGED
@@ -574,7 +574,7 @@ export default class Carousel extends React.PureComponent<
574
574
  const containerWidth = event.nativeEvent.layout.width;
575
575
  let itemWidth =
576
576
  this.props.visibleItem === 1
577
- ? containerWidth - Spacing.M * 2
577
+ ? screenWidth - Spacing.M * 2
578
578
  : Math.ceil(
579
579
  scaleSize(
580
580
  (containerWidth * 0.9 - visibleItem * Spacing.S) / visibleItem,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/carousel",
3
- "version": "0.81.34",
3
+ "version": "0.81.36",
4
4
  "private": false,
5
5
  "main": "index.tsx",
6
6
  "peerDependencies": {
@@ -16,4 +16,4 @@
16
16
  "dependencies": {
17
17
  "moment": "^2.24.0"
18
18
  }
19
- }
19
+ }