position > 1 OR < 0 When gradientPicker-ctrlPt drag to out of area This code must be inserted before line 99: pt.position = (pt.position > 1 ? 1 : (pt.position < 0 ? 0 : pt.position));