From 9b41276f9794acf0f7ba0c57eeb4ed426ca85699 Mon Sep 17 00:00:00 2001 From: Sappharad Date: Mon, 29 Jan 2024 21:47:54 -0600 Subject: [PATCH] Added workaround for no sound on iOS (web) - iOS gets a "Tap to start" overlay which must be tapped for sound to work. This is because starting in iOS 16 tapping the canvas no longer counts as a page interaction worthy of enabling sound. --- .../build/_emscripten/dist/sonic3air_web.html | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/Oxygen/sonic3air/build/_emscripten/dist/sonic3air_web.html b/Oxygen/sonic3air/build/_emscripten/dist/sonic3air_web.html index 2c1f99a69..96e0b04f2 100644 --- a/Oxygen/sonic3air/build/_emscripten/dist/sonic3air_web.html +++ b/Oxygen/sonic3air/build/_emscripten/dist/sonic3air_web.html @@ -63,6 +63,19 @@ #root{ color: black; } +#ios_workaround{ + width: 100%; + height: 100%; + position: absolute; + top: 0; + left: 0; + text-align: center; + padding-top: 40vh; + font-size: 2em; + user-select: none; + cursor: default; + background-color: rgba(0,0,0,50%); +}