I am doing a drag and drop function in javascript.
I already have the drag and drop working, but I have a question about the cursor's position. When I click on the object, instead of staying in the center of the object, the cursor automatically flies to the left corner of the object. I can still drag it, but I'm dragging it from the corner, not the middle.

The thing is, I don't know how to use Jquery, I'm learning basic javascript. I've tried googling, but things are all for more advanced projects.

Thank you for your time.