mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
parent
be16713510
commit
ba31b465c8
@ -85,7 +85,7 @@ VantComponent({
|
|||||||
|
|
||||||
const { speed, scrollable, delay } = this.data;
|
const { speed, scrollable, delay } = this.data;
|
||||||
|
|
||||||
if (scrollable && wrapRect.width < contentRect.width) {
|
if (scrollable || wrapRect.width < contentRect.width) {
|
||||||
const duration = (contentRect.width / speed) * 1000;
|
const duration = (contentRect.width / speed) * 1000;
|
||||||
|
|
||||||
this.wrapWidth = wrapRect.width;
|
this.wrapWidth = wrapRect.width;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user