回答編集履歴

1

コードをちょい修正

2018/08/16 16:35

投稿

ku__ra__ge
ku__ra__ge

スコア4524

test CHANGED
@@ -20,7 +20,7 @@
20
20
 
21
21
  ctx.beginPath();
22
22
 
23
- ctx.arc(e.clientX - rect.left, e.clientY - rect.top, 1, 0, Math.PI*2, true);
23
+ ctx.arc(before_x, before_y, 1, 0, Math.PI*2, true);
24
24
 
25
25
  ctx.fill();
26
26