Updating simultaneous zoom/pan algorithm.