I would like to drag a canvas element around, and have the screen updated while dragging it like it does with a div.  The code below lets me drag the canvas, but the screen does not update while the drag is happening, it only displays the rectangle after the drop.  The canvas disapears while the drag is happening.  Does anyone have any ideas about how to do this, maybe using onDrag? 

Thanks!

canvas = document.createElement("canvas");
canvas.setAttribute('id', 'canvas');
ctx = canvas.getContext("2d");
canvas.height=300;
canvas.width=300;
ctx.fillRect (10, 10, 55, 50);
document.body.appendChild(canvas);
$('#canvas').Draggable(); 
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to