thread sample check and mouse down event

thread sample check and mouse down event