2 ms·
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,
by wffurr 6y ago
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.
- greggman3 6y agoHere's a test https://jsgist.org/?src=0cfdcbad01c616047311b2b9ab51bbc3 https://jsgist.org/?src=0cfdcbad01c616047311b2b9ab51bbc3