fixed bug: odd behaviors while dragging div

Make sure to draw not just while dragging but also on stop