I am trying to integrate Radhael Sketch Pad into a web page, large devices work fine, but not work on touch devices. how can i solve this problem? I insert a link to the site and the jquery part here pl z check and give me a backlink http://ianli.com/sketchpad/
<script type="text/javascript"> var strokes = [{ type:"path", path:[["M",10,10],["L",390,390]], fill:"none", "stroke":"#000000", stroke-opacity:1, stroke-width:5, stroke-linecap:"round", stroke-linejoin:"round" }]; var sketchpad = Raphael.sketchpad("viewer", { width: 400, height: 400, strokes: strokes, editing: false }); </script>
source share