質問編集履歴
1
実際のコードを元に一部修正しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,6 +14,10 @@
|
|
14
14
|
|
15
15
|
|
16
16
|
|
17
|
+
let width = window.innerWidth;
|
18
|
+
|
19
|
+
let height = window.innerHeight;
|
20
|
+
|
17
21
|
let x0 = null;
|
18
22
|
|
19
23
|
let y0 = null;
|
@@ -21,6 +25,8 @@
|
|
21
25
|
|
22
26
|
|
23
27
|
window.addEventListener('mousemove', (event) => {
|
28
|
+
|
29
|
+
point[];
|
24
30
|
|
25
31
|
x0 = Math.floor(((event.clientX / width) * 100));
|
26
32
|
|
@@ -37,8 +43,6 @@
|
|
37
43
|
console.log(point[key].y);
|
38
44
|
|
39
45
|
}
|
40
|
-
|
41
|
-
point[];
|
42
46
|
|
43
47
|
}, false);
|
44
48
|
|