fix the bug when drag the float window