feat: Dont wait for the next frame to animate, b=no-bug, c=glance

This commit is contained in:
mr. m
2025-10-20 18:44:25 +02:00
parent 34424a8f95
commit f8375a1155

View File

@@ -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);
});
}