fix(tab-row): Reduce animation frames

This commit is contained in:
SiriusXT 2025-06-06 09:06:14 +08:00
parent 6508ef4fce
commit 6d416cfe65

View File

@ -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");