diff --git a/index.html b/index.html index 3c4f785..cddc988 100644 --- a/index.html +++ b/index.html @@ -32,8 +32,8 @@ />

- K: 下一行開始 | L: 這一行提前結束 | I: 前捲一行 | O: 後捲一行 | U: 倒帶 3 - 秒 | P: 前進 3 秒 | Q: 製作 SRT 檔 + K: 下一行開始 | L: 這一行提前結束 | I: 前捲一行 | O: 後捲一行 | U: 倒帶 2 + 秒 | P: 前進 2 秒 | Q: 製作 SRT 檔

K: Next Line | L: This Line Ends Early | I: Scroll Back | O: Scroll diff --git a/main.js b/main.js index f0e19e7..8b7c0bf 100644 --- a/main.js +++ b/main.js @@ -22,11 +22,10 @@ const keyMap = { } lines[currentStamping + 1][0] = clamp(video.currentTime - reactTime); - lines[currentStamping][1] = - lines[currentStamping][1] > video.currentTime - reactTime || - lines[currentStamping][1] === null - ? clamp(video.currentTime - 0.03 - reactTime) - : null; + if (lines[currentStamping][1] > video.currentTime - reactTime || lines[currentStamping][1] === null){ + lines[currentStamping][1] = clamp(video.currentTime - 0.03 - reactTime); + } + currentStamping += 1; }, 'l': video => { @@ -41,8 +40,8 @@ const keyMap = { 'o': () => { currentStamping += 1; }, - 'u': () => (video.currentTime -= 3), - 'p': () => (video.currentTime += 3), + 'u': () => (video.currentTime -= 2), + 'p': () => (video.currentTime += 2), 'q': () => makeSRT() };