howler.js icon indicating copy to clipboard operation
howler.js copied to clipboard

Fade In => Fade Out

Open DFortun81 opened this issue 11 years ago • 1 comments

If you attempt to fade out a howl and then immediately fade it back in while the fade out is still active, both fades happen at the same time and you get gittery sound until both fades have completed.

Recommended solution: Replace the setTimeout silliness with a window.setInterval and window.cancelInterval when fade is invoked again.

DFortun81 avatar Oct 12 '15 19:10 DFortun81

This is already how the 2.0 branch handles it, you just can't stop it yet. Closing as duplicate of #355.

goldfire avatar Oct 16 '15 18:10 goldfire