Fix several issues with dragging in the editor

going to the right place now I hope. :P