質問編集履歴
2
記述ミス
title
CHANGED
File without changes
|
body
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
|
16
16
|
// 例えばprocessingのようにこの関数が繰り返し呼ばれるとします。
|
17
17
|
function loop(){
|
18
|
-
if(
|
18
|
+
if(isTouching===true) console.log('red');
|
19
19
|
else console.log('blue');
|
20
20
|
}
|
21
21
|
|
1
記述ミス
title
CHANGED
File without changes
|
body
CHANGED
@@ -25,7 +25,7 @@
|
|
25
25
|
}
|
26
26
|
|
27
27
|
// タッチ終了時にこの関数が呼ばれるとします。
|
28
|
-
function
|
28
|
+
function ontouchend(){
|
29
29
|
isTouching = false;
|
30
30
|
}
|
31
31
|
```
|