Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/components/scrollBoard/src/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,11 @@ export default {

const rowLength = rowsData.length

if (rowNum >= rowLength) return
if (rowNum >= rowLength) {
// clear setTimeout and animationHandler
this.stopAnimation()
return
}

if (start) {
await new Promise(resolve => setTimeout(resolve, waitTime))
Expand Down Expand Up @@ -387,6 +391,8 @@ export default {
if (!animationHandler) return

clearTimeout(animationHandler)
// clear animationHandler
this.animationHandler = null
},
emitEvent (type, ri, ci, row, ceil) {
const { ceils, rowIndex } = row
Expand Down