Forums

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

Home Forums JavaScript Drag and Drop then Draw Line in JQUERY Reply To: Drag and Drop then Draw Line in JQUERY

#180532
nixnerd
Participant

The first thing you need to be able to do is drag something and console.log() the new position. As long as you’re able to somehow return the new position… you should be able to re-draw the line as it moves.

Now, AFAIK… this is NOT a trivial task. It may or may not work with SVG… I haven’t tried. It could surely work with canvas. But… canvas does have some limitations as far as I’m concerned.