Enable smooth scrolling in tabs and adjust tab height calculations for better UI responsiveness

This commit is contained in:
mr. M
2025-01-26 21:36:09 +01:00
parent 462f354a9d
commit 405b2180cf
7 changed files with 59 additions and 41 deletions

View File

@@ -32,10 +32,12 @@
}
// Disable smooth scroll
gBrowser.tabContainer.arrowScrollbox.smoothScroll = Services.prefs.getBoolPref(
'zen.startup.smooth-scroll-in-tabs',
false
);
if (!Services.prefs.getBoolPref('zen.startup.smooth-scroll-in-tabs', false)) {
gBrowser.tabContainer.addEventListener('wheel', (event) => {
event.preventDefault(); // Prevent the smooth scroll behavior
gBrowser.tabContainer.scrollTop += event.deltaY * 20; // Apply immediate scroll
});
}
gZenCompactModeManager.init();
ZenWorkspaces.init();