diff --git a/ti/static/ti/cv.js b/ti/static/ti/cv.js index 35b9cacc476700b164c931b718e3b16a7147516f..b44cd981c950bf7dd6d7d7263dfa8db8b75b9aa2 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":