Skip to content

Commit 1ceb46a

Browse files
committed
⚡️ perf(list): 去掉滚动到 loaded item 过程的动画
1 parent 66610bf commit 1ceb46a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/docs-flow/docs-list.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Author : frostime
44
Date : 2024-10-01 20:33:19
55
FilePath : /src/components/docs-flow/docs-list.svelte
6-
LastEditTime : 2024-10-03 14:26:17
6+
LastEditTime : 2024-11-17 18:41:11
77
Description :
88
99
显示所有的文档
@@ -57,7 +57,7 @@
5757
function scrollToFirstLoadedItem() {
5858
const firstLoadedItem = document.querySelector(".loaded");
5959
if (firstLoadedItem) {
60-
firstLoadedItem.scrollIntoView({ behavior: "smooth" });
60+
firstLoadedItem.scrollIntoView({ behavior: "instant" });
6161
}
6262
}
6363
</script>

0 commit comments

Comments
 (0)