added cursor position zooming and panning