Dragging/Moving shapes smoothly using Canvas 2d APIs

Did you ever write code to drag or move shapes using Canvas 2d APIs? If you did, then didn't you ever face a situation (an unexpected behaviour) when you drag or move a shape (e.g. circle, rectangle, image, Bezier cubic/quadratic curve, etc.)?
This post helps you write code to drag or move shapes as smoothly and accurately as possible using HTML5 Canvas 2d APIs.


http://muaz-khan.blogspot.com/2012/02/draggingmoving-shapes-smoothly-using_12.html