mybrowser.fyi-project icon indicating copy to clipboard operation
mybrowser.fyi-project copied to clipboard

Add OS DPI/scale/zoom

Open rudiedirkx opened this issue 7 years ago • 2 comments

I have my Windows at 1.25 scale/zoom. On OS level, not browser zoom. That means my screen is 1920x1080, but mybrowser.fyi sees 1536x864x. (I didn't calculate, but that should be about 4/5.) Sometimes that's nice to know.

I don't know how to detect it though...

rudiedirkx avatar Aug 02 '18 18:08 rudiedirkx

That's interesting. I'd love to dive into that a bit further. The width is calculated with window.innerWidth, but there's room for that to be a bit smarter to fix #17.

I'll link this up with that issue as I'll probably fix them all in one run.

Thanks @rudiedirkx!

Andy-set-studio avatar Aug 02 '18 20:08 Andy-set-studio

I mean the screen, not the window. So probably screen.width, not window.innerWidth. I can't find anything in window or screen larger than screen.width, so maybe it's not detectable.

rudiedirkx avatar Aug 02 '18 22:08 rudiedirkx