mirror of
https://github.com/zen-browser/desktop.git
synced 2026-08-27 17:01:30 +00:00
Refactor ZenCompactMode hover animation handling and add check for ZenWorkspaces existence in browserPlacesViews
This commit is contained in:
@@ -318,10 +318,12 @@ var gZenCompactModeManager = {
|
||||
target.addEventListener('mouseenter', (event) => {
|
||||
this.clearFlashTimeout('has-hover' + target.id);
|
||||
window.requestAnimationFrame(() => target.setAttribute('zen-has-hover', 'true'));
|
||||
this._animatingElements[target.id] = true;
|
||||
setTimeout(() => {
|
||||
delete this._animatingElements[target.id];
|
||||
}, 312.5); // 0.3125s is the duration of the sidebar animation (the longest one)
|
||||
if (target.id === 'navigator-toolbox' && gZenCompactModeManager.prefefence) {
|
||||
this._animatingElements[target.id] = true;
|
||||
setTimeout(() => {
|
||||
delete this._animatingElements[target.id];
|
||||
}, 312.5); // 0.3125s is the duration of the sidebar animation (the longest one)
|
||||
}
|
||||
});
|
||||
|
||||
target.addEventListener('mouseleave', (event) => {
|
||||
|
||||
Reference in New Issue
Block a user