fixed panning and zooming limit detection