boancamaria/touch.js
// Draw something when a touch start is detected

Draw something when a touch start is detected
Draw something when a touch start is detected
function sketchpad_touchStart() {
        getTouchPos();
        drawDot(ctx,touchX,touchY,12);
        event.preventDefault();
    }
function sketchpad_touchStart ( ) { getTouchPos ( ) ; drawDot ( ctx , touchX , touchY , 12 ) ; event . preventDefault ( ) ; }
Draw something when a touch start is detected
Draw something when a touch start is detected
// Update the touch co-ordinates
 // Prevents an additional mousedown event being triggered
