Implemented panning in the Graph view