From 6d416cfe65cd1bd0e92c47c26c92471d1495ce25 Mon Sep 17 00:00:00 2001 From: SiriusXT <1160925501@qq.com> Date: Fri, 6 Jun 2025 09:06:14 +0800 Subject: [PATCH] fix(tab-row): Reduce animation frames --- apps/client/src/widgets/tab_row.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/widgets/tab_row.ts b/apps/client/src/widgets/tab_row.ts index 2d8c8e20e..26da432c2 100644 --- a/apps/client/src/widgets/tab_row.ts +++ b/apps/client/src/widgets/tab_row.ts @@ -388,7 +388,7 @@ export default class TabRowWidget extends BasicWidget { let pendingScroll = 0; let isScrolling = false; const stepScroll = () => { - if (Math.abs(pendingScroll) > 10) { + if (Math.abs(pendingScroll) > 20) { const step = Math.round(pendingScroll * 0.2); pendingScroll -= step; this.scrollTabContainer(step, "instant");