update graph on drag, not just when you drop it

don't know if there should just be another 'ondragend' event as well, but it seems good enough for now