Skip to content

Commit

Permalink
Disable smooth scroll on startup and add comment for sidebar animatio…
Browse files Browse the repository at this point in the history
…n duration
  • Loading branch information
mauro-balades committed Jan 14, 2025
1 parent 60553b9 commit 5c0e990
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/browser/app/profile/zen-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/browser/base/zen-components/ZenCompactMode.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 5c0e990

Please sign in to comment.