Fixed bug where the view will re-center when the editor mode is changed