update scroll on motion