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,19 +364,25 @@
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
width: ['85%', '100%'], .animate(
height: ['100%', '100%'], this.browserWrapper,
}, { {
duration: 0.4, width: ['85%', '100%'],
type: 'spring', height: ['100%', '100%'],
}).then(() => { },
this.browserWrapper.removeAttribute('animate-full'); {
this.overlay.classList.remove('zen-glance-overlay'); duration: 0.4,
this.browserWrapper.removeAttribute('style'); type: 'spring',
this.animatingFullOpen = false; }
this.closeGlance({ noAnimation: true }); )
}); .then(() => {
this.browserWrapper.removeAttribute('animate-full');
this.overlay.classList.remove('zen-glance-overlay');
this.browserWrapper.removeAttribute('style');
this.animatingFullOpen = false;
this.closeGlance({ noAnimation: true });
});
} }
openGlanceForBookmark(event) { openGlanceForBookmark(event) {