Skip to content

Build your personal knowledge base with Trilium Notes

fix(tab-row): Reduce animation frames

SiriusXT6d416cfe65cd
diff --git a/apps/client/src/widgets/tab_row.ts b/apps/client/src/widgets/tab_row.ts
index 2d8c8e20eb..26da432c25 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");