mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
Added a preference to toggle the sidebar opening on hover in compact mode
This commit is contained in:
@@ -123,6 +123,7 @@ pref('zen.view.compact.toolbar-hide-after-hover.duration', 1000);
|
||||
pref('zen.view.compact.color-toolbar', true);
|
||||
pref('zen.view.compact.color-sidebar', true);
|
||||
pref('zen.view.compact.animate-sidebar', true);
|
||||
pref('zen.view.compact.show-sidebar-on-hover', true);
|
||||
|
||||
pref('zen.urlbar.behavior', 'floating-on-type'); // default, floating-on-type, float
|
||||
|
||||
|
@@ -276,17 +276,19 @@ var gZenCompactModeManager = {
|
||||
},
|
||||
|
||||
get hoverableElements() {
|
||||
return [
|
||||
{
|
||||
const panels = [];
|
||||
if (Services.prefs.getBoolPref('zen.view.compact.show-sidebar-on-hover', true)) {
|
||||
panels.push({
|
||||
element: this.sidebar,
|
||||
screenEdge: this.sidebarIsOnRight ? 'right' : 'left',
|
||||
keepHoverDuration: 100,
|
||||
},
|
||||
{
|
||||
element: document.getElementById('zen-appcontent-navbar-container'),
|
||||
screenEdge: 'top',
|
||||
},
|
||||
];
|
||||
});
|
||||
}
|
||||
panels.push({
|
||||
element: document.getElementById('zen-appcontent-navbar-container'),
|
||||
screenEdge: 'top',
|
||||
});
|
||||
return panels;
|
||||
},
|
||||
|
||||
flashSidebar(duration = lazyCompactMode.COMPACT_MODE_FLASH_DURATION) {
|
||||
|
Reference in New Issue
Block a user