Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript How to drag point (circle) and move it to sides Reply To: How to drag point (circle) and move it to sides

#186930
nixnerd
Participant

for some stylistic pop… you’ll probably want to have the circle immediately appear in the DOM and change as the user drags the mouse.

I recommend console logging the mouse positions in question to make sure your logic is good. Then… start playing around with using those numbers to make a div as your circle. This shouldn’t take more than a few hours with jQuery.