Hacker News new | ask | show | jobs
by Anaminus 1503 days ago
Vision: Game Boy Advance-sized website.

Problem: Very tiny.

Solution: Scale to viewport in integer increments.

Result: https://anaminus.github.io/

This disables zoom. In fact, it actively fights the zoom level to always fit the viewport. Have I committed a great sin?

4 comments

Not sure what you're going for, but this probably isn't it.

https://imgur.com/a/Kgktbvs

Love it.

To be honest, It makes me recall painful WAP[1] browsing on an old Nokia phone.

---

[1] https://en.wikipedia.org/wiki/Wireless_Application_Protocol

> This disables zoom. In fact, it actively fights the zoom level to always fit the viewport. Have I committed a great sin?

Yes. Scaling to the screen size is fine, overriding the users's attempt at zooming in is not.

It's not scaled to the viewport for me. It's centered in the middle of it, but still tiny.
I figured this would happen. I've also committed the even greater sin of testing in only one environment (my own). I guess we don't quite live in the future yet.