Use clamp value as reference for interpolating

This was used in 1.4.6, and the change in 2.0 seems to cause strange behavior,
specially when scrolling in a direction such that the vertical adjustment
decreases.