importing iOS fix

This commit is contained in:
jsemu 2019-04-23 23:23:04 -04:00
parent fa961aa319
commit 1a39d71446
2 changed files with 14 additions and 5 deletions

View file

@ -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 */

View file

@ -209,11 +209,19 @@ XAudioServer.prototype.initializeWebAudio = function () {
}, 500);
}
if (this.userEventLatch) {
this.userEventLatch.addEventListener("click", function () {
if(XAudioJSWebAudioContextHandle.state === 'suspended') {
XAudioJSWebAudioContextHandle.resume();
}
}, false);
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 () {