So I'm trying to drag and element from a div
into an other div
. The problem is that I can't get the right position to drop the new element in it's new parent. While dragging I can get the position but it come in negative.
I have tried to append the new element in the new div
the instant it enters the area using dragenter
event, but it didn't solve the problem. Are there any idea's? Here is a screenshot from the console.