Skip to content

Commit

Permalink
播放頭也會自動跳轉
Browse files Browse the repository at this point in the history
  • Loading branch information
anosanstudio committed Mar 18, 2023
1 parent c90f774 commit c0b4390
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ function autoJump() { //當autoJump開啟時拖動或輸入結束時,自動
for (let i = currentStamping; i < lines.length; i++) {
if ((lines[i][0] === null) || (lines[i][1] === null)) {
currentStamping = i;
video.currentTime = lines[i - 1][1] + 0.33; //自動跳轉後撥放頭也會自動跳轉到後面,並且向後一微小的偏移,以方便誤觸後生成的字幕不會太小,方便拖動
break;
}
}
Expand Down

0 comments on commit c0b4390

Please sign in to comment.