1
0
mirror of https://github.com/TeamPiped/Piped.git synced 2024-12-14 22:30:28 +05:30

Merge pull request #2207 from TeamPiped/revert-2199-frame-by-frame

Revert "Frame-by-frame navigation"
This commit is contained in:
Bnyro 2023-03-15 19:10:10 +01:00 committed by GitHub
commit 0a920c811b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,7 +100,7 @@ export default {
this.hotkeysPromise.then(() => { this.hotkeysPromise.then(() => {
var self = this; var self = this;
this.$hotkeys( this.$hotkeys(
"f,m,j,k,l,c,space,up,down,left,right,0,1,2,3,4,5,6,7,8,9,shift+n,shift+,,shift+.,return,.,,", "f,m,j,k,l,c,space,up,down,left,right,0,1,2,3,4,5,6,7,8,9,shift+n,shift+,,shift+.,return",
function (e, handler) { function (e, handler) {
const videoEl = self.$refs.videoEl; const videoEl = self.$refs.videoEl;
switch (handler.key) { switch (handler.key) {
@ -199,14 +199,6 @@ export default {
case "return": case "return":
self.skipSegment(videoEl); self.skipSegment(videoEl);
break; break;
case ".":
videoEl.currentTime += 0.04;
e.preventDefault();
break;
case ",":
videoEl.currentTime -= 0.04;
e.preventDefault();
break;
} }
}, },
); );