File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ export const NoticeBar: FunctionComponent<
358
358
target . style . transitionDuration = `${
359
359
swiperRef . current . moving ? 0 : duration
360
360
} ms`
361
- target . style . height = `${ Number ( height ) * childCount } px`
361
+ target . style . height = `${ Number ( height ) * ( childCount + 1 ) } px`
362
362
target . style . transform = `translate3D(0,${ _offset } px,0)`
363
363
}
364
364
// 无缝滚动第一个元素位移控制
Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ export const NoticeBar: FunctionComponent<
353
353
target . style . transitionDuration = `${
354
354
swiperRef . current . moving ? 0 : duration
355
355
} ms`
356
- target . style . height = `${ Number ( height ) * childCount } px`
356
+ target . style . height = `${ Number ( height ) * ( childCount + 1 ) } px`
357
357
target . style . transform = `translate3D(0,${ _offset } px,0)`
358
358
}
359
359
// 无缝滚动第一个元素位移控制
You can’t perform that action at this time.
0 commit comments