Fix panning for non-100% zoom levels.