1j01 / jspaint

🎨 Classic MS Paint, REVIVED + ✨Extras
https://jspaint.app/about
MIT License
7.22k stars 562 forks source link

HiDPI support for Firefox #175

Closed ebraminio closed 4 years ago

ebraminio commented 4 years ago

Filed as https://bugzilla.mozilla.org/show_bug.cgi?id=1625729 also,

Hi. Failed to find a similar issue in the tracker using HiDPI, DPI and Retina keywords, this is what I see in my HiDPI laptop (2x scaled) laptop just in Firefox on Linux but not in Chrome.

image

I like to see if I can play around it and maybe fix it, where should I look you believe?

Thanks!

1j01 commented 4 years ago

jspaint includes a meta tag, <meta name="viewport" content="width=device-width, user-scalable=no"> which asks the browser to scale it to real screen pixels, so firefox is likely being correct here. well i'm not sure if that's what it exactly means, but it's sort of implied.

You can zoom to 200% with your browser's zoom (as a workaround).

It would probably be good to have some condition where it doubles the UI size, but the easiest way of doing that (nonstandard CSS property zoom) breaks some code that does calculations about sizes and locations of things. See related: https://github.com/1j01/jspaint/issues/103

ebraminio commented 4 years ago

Somehow it works for me now,

image

Thank you very much!