I’ve solved the problem! I had to create a “Drag desactivated” variable so that it recovers when the drag is cancelled. Now it works correctly.