I'm trying to create a dashboard that is primarily used for static display on the client's large monitors/tvs.
The long short is that I want to apply css styling - specifically a snap-scroll feature on 'fullscreen' and 'maximized' displays, but disable it at all other times.
For fullscreen, this is simple:
@media all and (display-mode: fullscreen){}
However figuring out how to detect if the browser has been maximized, or at the very least, stretched to the full height of the screen seems to be impossible.
Mozilla has depricated device-height
which I was thinking could be used in conjunction with the window.screen.availHeight
in JS to calculate the maximum viewing size, inferring that it has been maximized.