Skip to content

Commit

Permalink
Merge pull request #808 from markknol/patch-1
Browse files Browse the repository at this point in the history
Add touchstart to enable mobile audio when swiping too
  • Loading branch information
goldfire committed Oct 6, 2017
2 parents 8358b86 + 8d8ac21 commit aabf881
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/howler.core.js
Expand Up @@ -333,11 +333,13 @@

// Remove the touch start listener.
document.removeEventListener('touchend', unlock, true);
document.removeEventListener('touchstart', unlock, true);
};
};

// Setup a touch start listener to attempt an unlock in.
document.addEventListener('touchend', unlock, true);
document.addEventListener('touchstart', unlock, true);

return self;
},
Expand Down

0 comments on commit aabf881

Please sign in to comment.