fixed several issues with dragging in the editor