I'm trying to find a way of calculating the mouse position from the center of an element.
I've got as far as e.pageX
and e.pageY
on the mouse over event, but I can't get my head around calculating its position relative to the elements center.
I can't think of the equation