Added the possibility to move the graph with the mouse