Optimize move object. (clicked the rect to move)