Modified offsetX offsetY property in mouse event example rathre than x and y