JavaScript30 icon indicating copy to clipboard operation
JavaScript30 copied to clipboard

Lesson 01 - Fix bug when key is held down

Open russellSE16 opened this issue 4 years ago • 0 comments

This PR fixes the bug where if the key is held down the 'playing' class doesn't get removed. It does so by adding some lines to prevent the sound being played a second time until the same key is released. This also feels more intuitive as holding down a key doesn't make the sound play repeatedly, you must press the key repeatedly to do that.

russellSE16 avatar Jul 02 '21 23:07 russellSE16