mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 05:40:49 +08:00
fix(tab-row): Reduce animation frames
This commit is contained in:
parent
6508ef4fce
commit
6d416cfe65
1 changed files with 1 additions and 1 deletions
|
|
@ -388,7 +388,7 @@ export default class TabRowWidget extends BasicWidget {
|
||||||
let pendingScroll = 0;
|
let pendingScroll = 0;
|
||||||
let isScrolling = false;
|
let isScrolling = false;
|
||||||
const stepScroll = () => {
|
const stepScroll = () => {
|
||||||
if (Math.abs(pendingScroll) > 10) {
|
if (Math.abs(pendingScroll) > 20) {
|
||||||
const step = Math.round(pendingScroll * 0.2);
|
const step = Math.round(pendingScroll * 0.2);
|
||||||
pendingScroll -= step;
|
pendingScroll -= step;
|
||||||
this.scrollTabContainer(step, "instant");
|
this.scrollTabContainer(step, "instant");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue