From 9e4485d806299db8534ce5825a8bed16ef97530d Mon Sep 17 00:00:00 2001
From: Young Guk Kim <kyk1047715@gmail.com>
Date: Wed, 25 Apr 2018 06:33:43 +0900
Subject: [PATCH] d

---
 ti/static/ti/cv.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ti/static/ti/cv.js b/ti/static/ti/cv.js
index 35b9cac..b44cd98 100644
--- a/ti/static/ti/cv.js
+++ b/ti/static/ti/cv.js
@@ -33,11 +33,11 @@
 
   function listener(event){
 
-    ctx.fillStyle = 'red'; // 채우기 색 지정
-    ctx.globalAlpha = "1.0"; // 채우기 투명도 설정
-    ctx.fillRect(0,0,500,500);
       switch(event.type){
           case "mousedown":
+              ctx.fillStyle = 'red'; // 채우기 색 지정
+              ctx.globalAlpha = "1.0"; // 채우기 투명도 설정
+              ctx.fillRect(0,0,500,500);
               initDraw(event);
               break;
           case "touchstart":
-- 
GitLab