Disable tab hover preview and clean up animation code in ZenGlanceManager

This commit is contained in:
mr. M
2025-02-01 17:29:32 +01:00
parent c47c140489
commit 3e89b1dae6
2 changed files with 20 additions and 16 deletions

View File

@@ -8,9 +8,7 @@
#endif #endif
#endif #endif
pref("browser.tabs.cardPreview.enabled", true); pref("browser.tabs.hoverPreview.enabled", false);
pref("browser.tabs.hoverPreview.enabled", true);
pref("browser.tabs.cardPreview.delayMs", 100);
#ifdef MOZ_UPDATE_CHANNEL #ifdef MOZ_UPDATE_CHANNEL
pref("devtools.debugger.prompt-connection", true); pref("devtools.debugger.prompt-connection", true);

View File

@@ -364,13 +364,19 @@
this.#currentTab.removeAttribute('zen-glance-tab'); this.#currentTab.removeAttribute('zen-glance-tab');
gBrowser.selectedTab = this.#currentTab; gBrowser.selectedTab = this.#currentTab;
this.currentParentTab.linkedBrowser.closest('.browserSidebarContainer').classList.remove('zen-glance-background'); this.currentParentTab.linkedBrowser.closest('.browserSidebarContainer').classList.remove('zen-glance-background');
gZenUIManager.motion.animate(this.browserWrapper, { gZenUIManager.motion
.animate(
this.browserWrapper,
{
width: ['85%', '100%'], width: ['85%', '100%'],
height: ['100%', '100%'], height: ['100%', '100%'],
}, { },
{
duration: 0.4, duration: 0.4,
type: 'spring', type: 'spring',
}).then(() => { }
)
.then(() => {
this.browserWrapper.removeAttribute('animate-full'); this.browserWrapper.removeAttribute('animate-full');
this.overlay.classList.remove('zen-glance-overlay'); this.overlay.classList.remove('zen-glance-overlay');
this.browserWrapper.removeAttribute('style'); this.browserWrapper.removeAttribute('style');