Update sketch.js
設定 K 鍵時,目前這行的結束時間提早到下一行開始前 0.05 秒,避免兩句重疊~
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user