Drag and Drop for simple Quiz

dragdrop

(Hans-Gerd Claßen) #21

regarding the fact you’re looking for a circle hittest you also may have a look at this example


(Stephen G) #22

Thanks @h_classen I found that if you set the radius of the rectangle to 90px the getBoundingClientRect(); method still returns the centre points for x and y while achieving a near perfect circular draggable element.

Heres the end result

Drag and Drop example with circular drag elements >