Properly constrain zooming and panning.