Fixed bug on panning while zooming