Do not scroll when distance is 0