Detache object only when clicking on the scene

Detache object only when clicking on the scene