How to move the head with the mouse in the cockpit?

Thanks, I know that. it works correctly for the external camera; but for the cockpit camera, when I release the right click, the view returns to the center and does not stay in place. Yet the setting is the same.