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;
|
background: #fff;
|
||||||
border-bottom: 1px solid rgba(0,0,0,.1);
|
border-bottom: 1px solid rgba(0,0,0,.1);
|
||||||
transition: .3s ease;
|
transition: .3s ease;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* auto hide menu while playing */
|
/* auto hide menu while playing */
|
||||||
|
|
|
@ -209,11 +209,19 @@ XAudioServer.prototype.initializeWebAudio = function () {
|
||||||
}, 500);
|
}, 500);
|
||||||
}
|
}
|
||||||
if (this.userEventLatch) {
|
if (this.userEventLatch) {
|
||||||
this.userEventLatch.addEventListener("click", function () {
|
try {
|
||||||
if(XAudioJSWebAudioContextHandle.state === 'suspended') {
|
this.userEventLatch.addEventListener("click", function () {
|
||||||
XAudioJSWebAudioContextHandle.resume();
|
if(XAudioJSWebAudioContextHandle.state === 'suspended') {
|
||||||
}
|
XAudioJSWebAudioContextHandle.resume();
|
||||||
}, false);
|
}
|
||||||
|
}, false);
|
||||||
|
this.userEventLatch.addEventListener("touchstart", function () {
|
||||||
|
if(XAudioJSWebAudioContextHandle.state === 'suspended') {
|
||||||
|
XAudioJSWebAudioContextHandle.resume();
|
||||||
|
}
|
||||||
|
}, false);
|
||||||
|
}
|
||||||
|
catch (e) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
XAudioServer.prototype.initializeFlashAudio = function () {
|
XAudioServer.prototype.initializeFlashAudio = function () {
|
||||||
|
|
Loading…
Add table
Reference in a new issue