help me pls. how can i limit the movement of the blue tile when dragging?. i want the movement inside the boarder. see 1.png

probably Try this ,

I am not sure but it should work, just change the last line

i.e, transform.position = pos;
to
     transform.position = Camera.main.ViewportToWorldPoint(pos);