Add handler for fullscreen changes to automatically toggle panel visibility, improving user experience.