質問編集履歴
2
記述ミス
test
CHANGED
File without changes
|
test
CHANGED
@@ -32,7 +32,7 @@
|
|
32
32
|
|
33
33
|
function loop(){
|
34
34
|
|
35
|
-
if(
|
35
|
+
if(isTouching===true) console.log('red');
|
36
36
|
|
37
37
|
else console.log('blue');
|
38
38
|
|
1
記述ミス
test
CHANGED
File without changes
|
test
CHANGED
@@ -52,7 +52,7 @@
|
|
52
52
|
|
53
53
|
// タッチ終了時にこの関数が呼ばれるとします。
|
54
54
|
|
55
|
-
function ontouch
|
55
|
+
function ontouchend(){
|
56
56
|
|
57
57
|
isTouching = false;
|
58
58
|
|