tweaking the clamping of the pointer on the line