improved edge dragging but there is still something wrong with the intersection on the curve