Skip to content

Commit e9bf555

Browse files
committed
[#72] Position undo store allow jump back
1 parent da149e9 commit e9bf555

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/scripts/page/player.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,9 @@ const keydownHandler = (e: KeyboardEvent) => {
289289
sendMessage(Message.QUEUE_PREV, null, false);
290290
break;
291291
case 'z':
292+
const curPos = player.currentTime;
292293
if (lastPositon != undefined) player.currentTime = lastPositon;
294+
lastPositon = curPos;
293295
break;
294296
default:
295297
return;

0 commit comments

Comments
 (0)