From mouse event to touch event
<p>I have this javascript code, which I'd like to use also on a touch or tap the screen. Now it works only on mouse click. I would like to have it on android. Can you please help?</p>

<pre><code>//Draw circle
function drawCircle(e) {
canvas.click(function(e) {
var canvasOffset = canvas.offset();
var canvasX = Math.floor(e.pageX-canvasOffset.left);
var canvasY = Math.floor(e.pageY-canvasOffset.top);
cb_ctx.beginPath();
cb_ctx.arc(canvasX,canvasY,cb_ctx.lineWidth/2,0,Math.PI*2,true);
cb_ctx.fillStyle = cb_ctx.strokeStyle;
cb_ctx.fill();
});
}
</code></pre>
