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
|
||||||
#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);
|
||||||
|
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user