Merge branch 'main' into glossing/perf-lfos

This commit is contained in:
Aria 2025-11-28 19:59:51 +01:00
commit e10cd22c26
22 changed files with 289 additions and 50 deletions

View file

@ -263,8 +263,8 @@ let audioReady;
export async function initAudioOnFirstClick(options) {
if (!audioReady) {
audioReady = new Promise((resolve) => {
document.addEventListener('click', async function listener() {
document.removeEventListener('click', listener);
document.addEventListener('mousedown', async function listener() {
document.removeEventListener('mousedown', listener);
await initAudio(options);
resolve();
});