Constrain cubic-bezier time percentage to [0, 100] range

This is for #5883.

Note that this only happens when points are at x=0 or x=100 so that they extend over edge of grid *and* you move mouse inside points (not grid).