Fixed #78 (The editor scrolls to the beginning when clicking into the diagram)