1.0.0 - init

This commit is contained in:
LINING-PC\lining
2025-06-30 12:57:22 +08:00
parent 18d291f415
commit 7a5b28a364
10 changed files with 147 additions and 32 deletions
+6 -2
View File
@@ -768,7 +768,9 @@ const handleTimelineScroll = (event: Event) => {
// 设置滚动状态
isScrolling.value = true
target.classList.add('scrolling')
if (target && 'classList' in target && typeof target.classList.add === 'function') {
target.classList.add('scrolling')
}
// 清除之前的定时器
if (scrollTimeout) {
@@ -778,7 +780,9 @@ const handleTimelineScroll = (event: Event) => {
// 500ms后移除滚动状态
scrollTimeout = setTimeout(() => {
isScrolling.value = false
target.classList.remove('scrolling')
if (target && 'classList' in target && typeof target.classList.remove === 'function') {
target.classList.remove('scrolling')
}
}, 500)
}