Fenix 7X SS display switch automatically night/day mode

I have a Fenix 7X Solar Sapphire and during running and any cycling activities the screen automatically switches from day mode (light screen) to night mode (dark screen) and vice versa . Is it an automatism that can be disabled or is it a bug?