Skip to content

Commit

Permalink
fix(ui/swipe): fix stopAutoplay function
Browse files Browse the repository at this point in the history
affects: @varlet/ui
  • Loading branch information
haoziqaq committed Dec 28, 2021
1 parent e52a3c5 commit b2390fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/varlet-ui/src/swipe/Swipe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export default defineComponent({
}
const stopAutoplay = () => {
timer && clearInterval(timer)
timer && clearTimeout(timer)
}
const getDirection = (x: number, y: number) => {
Expand Down

0 comments on commit b2390fb

Please sign in to comment.