Fixed the "K" key logic.
Changed the forward/rewind time to 2 secs.
This commit is contained in:
@@ -32,8 +32,8 @@
|
||||
/>
|
||||
</label>
|
||||
<p>
|
||||
K: 下一行開始 | L: 這一行提前結束 | I: 前捲一行 | O: 後捲一行 | U: 倒帶 3
|
||||
秒 | P: 前進 3 秒 | Q: 製作 SRT 檔
|
||||
K: 下一行開始 | L: 這一行提前結束 | I: 前捲一行 | O: 後捲一行 | U: 倒帶 2
|
||||
秒 | P: 前進 2 秒 | Q: 製作 SRT 檔
|
||||
</p>
|
||||
<p>
|
||||
K: Next Line | L: This Line Ends Early | I: Scroll Back | O: Scroll
|
||||
|
13
main.js
13
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()
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user