Sunday 15 July 2012

javascript - HTML5 drag and drop image offset on drop -


I have a draggable = "true" element that I'm leaving in a drop zone The incident returns me some properties which I can use to use it and make a new element where it was dropped.

It seems to give only the position of the mouse. But it does not seem where the image was offset with respect to the mouse.

Where will I find that information?

image offset example

Help in understanding To do a picture, the mouse is at the yellow point. Drop Event Returns event.x and event.y where the mouse is .... but I should know what the blue dot is, or offset (red lines)


No comments:

Post a Comment