mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-06 18:06:35 +00:00
Disable tab hover preview and clean up animation code in ZenGlanceManager
This commit is contained in:
@@ -8,9 +8,7 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
pref("browser.tabs.cardPreview.enabled", true);
|
||||
pref("browser.tabs.hoverPreview.enabled", true);
|
||||
pref("browser.tabs.cardPreview.delayMs", 100);
|
||||
pref("browser.tabs.hoverPreview.enabled", false);
|
||||
|
||||
#ifdef MOZ_UPDATE_CHANNEL
|
||||
pref("devtools.debugger.prompt-connection", true);
|
||||
|
@@ -364,19 +364,25 @@
|
||||
this.#currentTab.removeAttribute('zen-glance-tab');
|
||||
gBrowser.selectedTab = this.#currentTab;
|
||||
this.currentParentTab.linkedBrowser.closest('.browserSidebarContainer').classList.remove('zen-glance-background');
|
||||
gZenUIManager.motion.animate(this.browserWrapper, {
|
||||
width: ['85%', '100%'],
|
||||
height: ['100%', '100%'],
|
||||
}, {
|
||||
duration: 0.4,
|
||||
type: 'spring',
|
||||
}).then(() => {
|
||||
this.browserWrapper.removeAttribute('animate-full');
|
||||
this.overlay.classList.remove('zen-glance-overlay');
|
||||
this.browserWrapper.removeAttribute('style');
|
||||
this.animatingFullOpen = false;
|
||||
this.closeGlance({ noAnimation: true });
|
||||
});
|
||||
gZenUIManager.motion
|
||||
.animate(
|
||||
this.browserWrapper,
|
||||
{
|
||||
width: ['85%', '100%'],
|
||||
height: ['100%', '100%'],
|
||||
},
|
||||
{
|
||||
duration: 0.4,
|
||||
type: 'spring',
|
||||
}
|
||||
)
|
||||
.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) {
|
||||
|
Reference in New Issue
Block a user