edemaine / cocreate

Cocreate Shared Whiteboard/Drawing
MIT License
209 stars 27 forks source link

LaTeX offset in Firefox #199

Closed edemaine closed 1 year ago

edemaine commented 2 years ago

Math seems to render bottom-aligned with the baseline, instead of matching baselines:

image

This can do weird things when combined with the selection cursor: if you have text like this, zoom out a bunch via Cocreate zoom, and edit the text, the offset can be further exaggerated, I think because the math is getting placed relative to the top of the bounding box?

image

diomidov commented 1 year ago

You also get an exaggerated offset if you load the page while zoomed out or duplicate a text object while zoomed out.

edemaine commented 1 year ago

I did some investigation today and isolated to this Firefox bug.

I might be able to work around this bug by turning off the transform for the duration of measurement...