Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I will check out that ResizeObserver property.

I hack around it by taking the CSS size of the container, finding the closest smaller integer device pixel size, and set the canvas context to that and the canvas CSS size to the fractional size, which can be smaller than the containers CSS size.

Basically rounding down.






Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: