Update sketch.js

設定 K 鍵時,目前這行的結束時間提早到下一行開始前 0.05 秒,避免兩句重疊~
This commit is contained in:
Wiwi Kuan
2020-03-15 14:42:06 +08:00
committed by GitHub
parent ba87cc828f
commit d86abc9f20

View File

@@ -59,7 +59,7 @@ function keyPressed() {
}
// set prev line's end time, if prev end time > currentTime;
if (lineEndTime[currentStamping] > vid.elt.currentTime - reactTime || lineEndTime[currentStamping] == null) {
lineEndTime[currentStamping] = vid.elt.currentTime - 0.03 - reactTime;
lineEndTime[currentStamping] = vid.elt.currentTime - 0.05 - reactTime;
if (lineEndTime[currentStamping] < 0){
lineEndTime[currentStamping] = 0;
}