Skipping unlocking if touchmove event occurred before touchend event

This commit is contained in:
Pavle Goloskokovic 2018-01-18 14:11:49 +01:00
parent b036eecd9f
commit 336f5b9028

View file

@ -92,6 +92,10 @@ var HTML5AudioSoundManager = new Class({
moved = true;
};
var unlock = function () {
if (moved) {
moved = false;
return;
}
document.body.removeEventListener('touchend', unlock);
var allTags = [];
_this.game.cache.audio.entries.each(function (key, tags) {