altered calculation of zoom window position