Browser screen width and height

How to get screen width & height of the browser?

Original Post on Discord

by user 688959811634987037

just found it, this.context.domWidth & this.context.domHeight

by user 688959811634987037

Yes those two are the width and height of your 3d canvas element / 3d scene in the browser.
It is not necessarily the size of the window (that would be window.innerWidth if you ever need that :slightly_smiling_face: Window: innerWidth property - Web APIs | MDN)