Smooth transition

 From:  PaQ
2140.8 
Looks like a patch will be the best tool to close this.
Here's an alternative, far to be perfect.

EDITED: 3 Dec 2015 by PAQ