mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
fix: hoverableElements function to include the container by default
This commit is contained in:

committed by
afonsofrancof

parent
908c8114bb
commit
17b72bc8fd
@@ -277,19 +277,21 @@ var gZenCompactModeManager = {
|
||||
|
||||
get hoverableElements() {
|
||||
const showSidebarOnHover = Services.prefs.getBoolPref('zen.view.compact.show-sidebar-on-hover', true);
|
||||
return showSidebarOnHover
|
||||
? [
|
||||
{
|
||||
element: this.sidebar,
|
||||
return [
|
||||
...(showSidebarOnHover
|
||||
? [
|
||||
{
|
||||
element: this.sidebar,
|
||||
screenEdge: this.sidebarIsOnRight ? 'right' : 'left',
|
||||
keepHoverDuration: 100,
|
||||
},
|
||||
{
|
||||
element: document.getElementById('zen-appcontent-navbar-container'),
|
||||
screenEdge: 'top',
|
||||
},
|
||||
]
|
||||
: [];
|
||||
keepHoverDuration: 100,
|
||||
},
|
||||
]
|
||||
: []),
|
||||
{
|
||||
element: document.getElementById('zen-appcontent-navbar-container'),
|
||||
screenEdge: 'top',
|
||||
},
|
||||
];
|
||||
},
|
||||
|
||||
flashSidebar(duration = lazyCompactMode.COMPACT_MODE_FLASH_DURATION) {
|
||||
|
Reference in New Issue
Block a user