diff options
| author | Andre Weissflog <floooh@gmail.com> | 2023-01-19 20:04:37 +0100 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2023-01-19 20:04:37 +0100 |
| commit | 851dfbb5a9de82265a97824ebec844ee8f10f95a (patch) | |
| tree | 55fb278973a1d0346e804179e28f30c322d861e9 /sokol_audio.h | |
| parent | ad296198dfc01d3f4cb6fb231411430e69c7d68b (diff) | |
sokol_audio.h webaudio: resume audio context in touchend, not touchstart (fixes #701)
Diffstat (limited to 'sokol_audio.h')
| -rw-r--r-- | sokol_audio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sokol_audio.h b/sokol_audio.h index 6e491ec0..e9cbcb46 100644 --- a/sokol_audio.h +++ b/sokol_audio.h @@ -1835,7 +1835,7 @@ EM_JS(int, saudio_js_init, (int sample_rate, int num_channels, int buffer_size), } }; document.addEventListener('click', resume_webaudio, {once:true}); - document.addEventListener('touchstart', resume_webaudio, {once:true}); + document.addEventListener('touchend', resume_webaudio, {once:true}); document.addEventListener('keydown', resume_webaudio, {once:true}); return 1; } |