From d86abc9f203a14a7947f5e133710898323321628 Mon Sep 17 00:00:00 2001 From: Wiwi Kuan Date: Sun, 15 Mar 2020 14:42:06 +0800 Subject: [PATCH] Update sketch.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 設定 K 鍵時,目前這行的結束時間提早到下一行開始前 0.05 秒,避免兩句重疊~ --- sketch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sketch.js b/sketch.js index 63cdf96..a3fb9da 100644 --- a/sketch.js +++ b/sketch.js @@ -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; }