corrected dragging in edit mode
removed console.log