mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
Small tweak to nohover to only start timeout on requestanimationframe (#1398)
This commit is contained in:
parent
cb50023d79
commit
898d21d1b2
@ -92,9 +92,11 @@ async function reinitWave() {
|
|||||||
// We use this hack to prevent a flicker of the previously-hovered tab when this view was last active. This class is set in setActiveTab in global.ts. See tab.scss for where this class is used.
|
// We use this hack to prevent a flicker of the previously-hovered tab when this view was last active. This class is set in setActiveTab in global.ts. See tab.scss for where this class is used.
|
||||||
// Also overrides the staticTabAtom to the new tab id so that the active tab is set correctly.
|
// Also overrides the staticTabAtom to the new tab id so that the active tab is set correctly.
|
||||||
globalStore.set(overrideStaticTabAtom, savedInitOpts.tabId);
|
globalStore.set(overrideStaticTabAtom, savedInitOpts.tabId);
|
||||||
setTimeout(() => {
|
requestAnimationFrame(() =>
|
||||||
document.body.classList.remove("nohover");
|
setTimeout(() => {
|
||||||
}, 100);
|
document.body.classList.remove("nohover");
|
||||||
|
}, 100)
|
||||||
|
);
|
||||||
|
|
||||||
const client = await WOS.reloadWaveObject<Client>(WOS.makeORef("client", savedInitOpts.clientId));
|
const client = await WOS.reloadWaveObject<Client>(WOS.makeORef("client", savedInitOpts.clientId));
|
||||||
const waveWindow = await WOS.reloadWaveObject<WaveWindow>(WOS.makeORef("window", savedInitOpts.windowId));
|
const waveWindow = await WOS.reloadWaveObject<WaveWindow>(WOS.makeORef("window", savedInitOpts.windowId));
|
||||||
|
Loading…
Reference in New Issue
Block a user