Lock mouse to center of object

Does anyone know how to lock the mouse to the center of the drag object but instead of the center of the object moves towards the mouse its the mouse who’s going to move towards the center of the object? This

startDrag(this, true);

locks the mouse to the center but its kind of annoying to see the object jumping specially if the object is big.

Need advice or if you’re too generous to provide a sample code, I’ll appreciate it very much. Thanks.