goldfire / howler.js

Javascript audio library for the modern web.
https://howlerjs.com
MIT License
23.95k stars 2.23k forks source link

[1.1.27] _enableiOSAudio does not work on iOS with cocos2d-html5 #370

Closed metalim closed 8 years ago

metalim commented 9 years ago

howler.js v1.1.27 touchend listener is not called on window, as cocos2d-html5 captures all events. So howl sounds never start. Modifying listener to capture events solves the problem: window.addEventListener('touchend', unlock, ***true***); and corresponding window.removeEventListener('touchend', unlock, true);

goldfire commented 8 years ago

Thanks, added in 9367ed5dd70c184ba7c7b6b7d36313cb0e60ea9d.