mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-13 23:08:20 +00:00
Refactor animation code in ZenGlanceManager for improved readability
This commit is contained in:
@@ -149,8 +149,7 @@
|
|||||||
window.requestAnimationFrame(() => {
|
window.requestAnimationFrame(() => {
|
||||||
this.quickOpenGlance();
|
this.quickOpenGlance();
|
||||||
|
|
||||||
gZenUIManager.motion
|
gZenUIManager.motion.animate(
|
||||||
.animate(
|
|
||||||
this.#currentParentTab.linkedBrowser.closest('.browserSidebarContainer'),
|
this.#currentParentTab.linkedBrowser.closest('.browserSidebarContainer'),
|
||||||
{
|
{
|
||||||
scale: 0.98,
|
scale: 0.98,
|
||||||
@@ -535,7 +534,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
getFocusedTab(aDir) {
|
getFocusedTab(aDir) {
|
||||||
return aDir< 0 ? this.#currentParentTab : this.#currentTab;
|
return aDir < 0 ? this.#currentParentTab : this.#currentTab;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user