mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-08 02:46:35 +00:00
Add conditional animation for sidebar in compact mode
This commit is contained in:
@@ -117,7 +117,9 @@ var gZenCompactModeManager = {
|
|||||||
}
|
}
|
||||||
this._isAnimating = true;
|
this._isAnimating = true;
|
||||||
// Do this so we can get the correct width ONCE compact mode styled have been applied
|
// Do this so we can get the correct width ONCE compact mode styled have been applied
|
||||||
|
if (this._canAnimateSidebar) {
|
||||||
this.sidebar.setAttribute("animate", "true");
|
this.sidebar.setAttribute("animate", "true");
|
||||||
|
}
|
||||||
window.requestAnimationFrame(() => {
|
window.requestAnimationFrame(() => {
|
||||||
let sidebarWidth = this.getAndApplySidebarWidth();
|
let sidebarWidth = this.getAndApplySidebarWidth();
|
||||||
if (!this._canAnimateSidebar) {
|
if (!this._canAnimateSidebar) {
|
||||||
|
Reference in New Issue
Block a user