milinnovations/itch

The chart continuously drifts in one direction on certain browser zoom levels in Chromium-based browsers

Closed this issue · 2 comments

e.g. at 75%
This is most likely caused by a rounding/number representation issue somewhere.

The browser's zoom level can be accessed using window.devicePixelRatio. Interestingly this is a round number in Firefox, but not in Chrome, e.g. 0.8 in Firefox vs 0.800000011920929 in Chrome.

We couldn't reproduce this bug after Gabor's reimplementation of horizontal dragging. Hopefully it's fixed.