mirror of
https://github.com/zen-browser/desktop.git
synced 2026-03-29 20:01:52 +00:00
feat: Dont wait for the next frame to animate, b=no-bug, c=glance
This commit is contained in:
@@ -328,9 +328,7 @@
|
||||
data.elementData = await this.#getElementPreviewData(data);
|
||||
}
|
||||
this.#glances.get(this.#currentGlanceID).elementData = data.elementData;
|
||||
window.requestAnimationFrame(() => {
|
||||
this.#executeGlanceAnimation(data, browserElement, resolve);
|
||||
});
|
||||
this.#executeGlanceAnimation(data, browserElement, resolve);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user