teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

記述ミス

2017/09/21 23:13

投稿

d415uk35470
d415uk35470

スコア45

title CHANGED
File without changes
body CHANGED
@@ -15,7 +15,7 @@
15
15
 
16
16
  // 例えばprocessingのようにこの関数が繰り返し呼ばれるとします。
17
17
  function loop(){
18
- if(flag===true) console.log('red');
18
+ if(isTouching===true) console.log('red');
19
19
  else console.log('blue');
20
20
  }
21
21
 

1

記述ミス

2017/09/21 23:13

投稿

d415uk35470
d415uk35470

スコア45

title CHANGED
File without changes
body CHANGED
@@ -25,7 +25,7 @@
25
25
  }
26
26
 
27
27
  // タッチ終了時にこの関数が呼ばれるとします。
28
- function ontouchstart(){
28
+ function ontouchend(){
29
29
  isTouching = false;
30
30
  }
31
31
  ```