mirror of
https://github.com/DPS2004/gba.git
synced 2025-04-29 13:19:24 -04:00
importing iOS fix
This commit is contained in:
parent
fa961aa319
commit
1a39d71446
2 changed files with 14 additions and 5 deletions
|
@ -117,6 +117,7 @@ div#menu {
|
|||
background: #fff;
|
||||
border-bottom: 1px solid rgba(0,0,0,.1);
|
||||
transition: .3s ease;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* auto hide menu while playing */
|
||||
|
|
|
@ -209,11 +209,19 @@ XAudioServer.prototype.initializeWebAudio = function () {
|
|||
}, 500);
|
||||
}
|
||||
if (this.userEventLatch) {
|
||||
try {
|
||||
this.userEventLatch.addEventListener("click", function () {
|
||||
if(XAudioJSWebAudioContextHandle.state === 'suspended') {
|
||||
XAudioJSWebAudioContextHandle.resume();
|
||||
}
|
||||
}, false);
|
||||
this.userEventLatch.addEventListener("touchstart", function () {
|
||||
if(XAudioJSWebAudioContextHandle.state === 'suspended') {
|
||||
XAudioJSWebAudioContextHandle.resume();
|
||||
}
|
||||
}, false);
|
||||
}
|
||||
catch (e) {}
|
||||
}
|
||||
}
|
||||
XAudioServer.prototype.initializeFlashAudio = function () {
|
||||
|
|
Loading…
Add table
Reference in a new issue