fix drag and pan and zoom for graphs