floating document -Stop

 when I move or resize my document using trackpad  it sometime floats off and is unstoppable. 

How do I anchor it?