Merge pull request #166 from Amatrelan/go

Music play speed controls not working
This commit is contained in:
Eduard Urbach 2018-07-02 23:00:25 +09:00 committed by GitHub
commit 69adc55d2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1054,14 +1054,15 @@ export default class AnimeNotifier {
return preventDefault()
}
// "+" = Audio speed up
if(e.keyCode === 107 || e.keyCode === 187) {
if(e.keyCode === 107 || e.keyCode === 187 || e.key == "+") {
this.audioPlayer.addSpeed(0.05)
return preventDefault()
}
// "-" = Audio speed down
if(e.keyCode === 109 || e.keyCode === 189) {
if(e.keyCode === 109 || e.keyCode === 189 || e.key == "-") {
this.audioPlayer.addSpeed(-0.05)
return preventDefault()
}