我試圖讓音頻聲音在觸摸上播放,但不能一直工作,它的工作在股票和海豚在Android上,但它不工作在iPad上。我曾嘗試過在觸動開始時使用mousedown,onclick,touchstart。他們都不是工作Mousdown相當於手機
<canvas id="scratcher1" class="scratchMe" width="99px" height="89px" onmousedown="alert(down)" onclick="alert(click)" touchstart="alert(touch)" ontouchstart="alert(ontouch)"></canvas>
<canvas id="scratcher2" class="scratchMe" width="99px" height="89px" onmousedown="scratch.play()"></canvas>
這是在什麼現在它,切換到警報,所以我可以嘗試找出哪些工作,就像我說的也不是。