I'm tring to use the "touchstart" mobile event and the HTML5 canvas to draw something using jquery mobile !
I use this html code :
<canvas id="canvasTouch">Canvas is not supported</canvas>
and Js code :
canvas = document.getElementById('canvasTouch');
context = canvas.getContext('2d');
$(document).bind("touchstart",function(event) {
context.beginPath();
context.arc(event.originalEvent.targetTouches[0].pageX,event.originalEvent.targetTouches[0].pageY, 10, 0, Math.PI*2);
context.fill();
context.closePath();
}
But my circle look like ellipsis and are quite blurred !
I tried this code with a classic html page and it works fine on my device ...
Do you have any idea ?
Thanks