close clip if click outside