Corrected zoom-fit
Improved zoom and fixed pan-off-screen errors