From 5720dff5dc385181e528a9d3c2908276a12950d6 Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Wed, 17 Jan 2018 14:08:38 +0100 Subject: [PATCH] onLoad needs to be called from timeout callback in order to not cause issues --- src/loader/filetypes/HTML5AudioFile.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/loader/filetypes/HTML5AudioFile.js b/src/loader/filetypes/HTML5AudioFile.js index 2f11d9b3a..e4cbdda53 100644 --- a/src/loader/filetypes/HTML5AudioFile.js +++ b/src/loader/filetypes/HTML5AudioFile.js @@ -100,7 +100,11 @@ var HTML5AudioFile = new Class({ if (touchLocked) { - this.onLoad(); + setTimeout(function () + { + this.onLoad(); + + }.bind(this)); } }