|
@@ -112,7 +112,7 @@ export default create({
|
|
|
moving: false,
|
|
moving: false,
|
|
|
offset: 0,
|
|
offset: 0,
|
|
|
touchTime: 0,
|
|
touchTime: 0,
|
|
|
- autoplayTimer: 0 as number | undefined,
|
|
|
|
|
|
|
+ autoplayTimer: null as NodeJS.Timeout | undefined | null,
|
|
|
children: [] as ComponentPublicInstance[],
|
|
children: [] as ComponentPublicInstance[],
|
|
|
childrenVNode: [] as VNode[],
|
|
childrenVNode: [] as VNode[],
|
|
|
style: {}
|
|
style: {}
|
|
@@ -279,7 +279,9 @@ export default create({
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const stopAutoPlay = () => {
|
|
const stopAutoPlay = () => {
|
|
|
- clearTimeout(state.autoplayTimer);
|
|
|
|
|
|
|
+ if (state.autoplayTimer) {
|
|
|
|
|
+ clearTimeout(state.autoplayTimer);
|
|
|
|
|
+ }
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const jump = (pace: number) => {
|
|
const jump = (pace: number) => {
|