changed onpan function signature as it is called by x and y co-ordinates 

Currently onPan function is called by IPoint interface with x and y property, but in original svg-pan-zoom library it is called by two seperate point as argument, so need to change it