defaultSkipInterval * player.playbackRate() (#2153)

This commit is contained in:
bob1520 2022-03-30 02:06:54 +00:00 committed by GitHub
parent d026170905
commit d5c40be2ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -1497,7 +1497,7 @@ export default Vue.extend({
// J Key // J Key
// Rewind by 2x the time-skip interval (in seconds) // Rewind by 2x the time-skip interval (in seconds)
event.preventDefault() event.preventDefault()
this.changeDurationBySeconds(-this.defaultSkipInterval * 2) this.changeDurationBySeconds(-this.defaultSkipInterval * this.player.playbackRate() * 2)
break break
case 75: case 75:
// K Key // K Key
@ -1509,7 +1509,7 @@ export default Vue.extend({
// L Key // L Key
// Fast-Forward by 2x the time-skip interval (in seconds) // Fast-Forward by 2x the time-skip interval (in seconds)
event.preventDefault() event.preventDefault()
this.changeDurationBySeconds(this.defaultSkipInterval * 2) this.changeDurationBySeconds(this.defaultSkipInterval * this.player.playbackRate() * 2)
break break
case 79: case 79:
// O Key // O Key
@ -1557,13 +1557,13 @@ export default Vue.extend({
// Left Arrow Key // Left Arrow Key
// Rewind by the time-skip interval (in seconds) // Rewind by the time-skip interval (in seconds)
event.preventDefault() event.preventDefault()
this.changeDurationBySeconds(-this.defaultSkipInterval * 1) this.changeDurationBySeconds(-this.defaultSkipInterval * this.player.playbackRate())
break break
case 39: case 39:
// Right Arrow Key // Right Arrow Key
// Fast-Forward by the time-skip interval (in seconds) // Fast-Forward by the time-skip interval (in seconds)
event.preventDefault() event.preventDefault()
this.changeDurationBySeconds(this.defaultSkipInterval * 1) this.changeDurationBySeconds(this.defaultSkipInterval * this.player.playbackRate())
break break
case 73: case 73:
// I Key // I Key