Disable smooth scroll on startup and add comment for sidebar animation duration

This commit is contained in:
mr. M
2025-01-14 17:45:57 +01:00
parent 60553b996c
commit 5c0e99008b
2 changed files with 2 additions and 2 deletions

View File

@@ -188,7 +188,7 @@ pref('zen.splitView.change-on-hover', false);
pref('zen.splitView.rearrange-hover-size', 24);
// Startup flags
pref('zen.startup.smooth-scroll-in-tabs', true);
pref('zen.startup.smooth-scroll-in-tabs', false);
// Zen Workspaces
pref('zen.workspaces.disabled_for_testing', false);

View File

@@ -321,7 +321,7 @@ var gZenCompactModeManager = {
this._animatingElements[target.id] = true;
setTimeout(() => {
delete this._animatingElements[target.id];
}, 312.5);
}, 312.5); // 0.3125s is the duration of the sidebar animation (the longest one)
});
target.addEventListener('mouseleave', (event) => {