Closed Seasawher closed 1 month ago
I found the same problem which @Seasawher reported occurs in my similar environment.
aaaaaaaaaaaa
... , this cursor lagging becomes more serious.@aconite-ac so you say you observe this in github too, so completely independend of lean4web?
Could it be a bug in the monaco editor?
Old issues online suggest using monaco.editor.remeasureFonts()
once after the font's done loading. I'll try that tomorrow.
@joneugster I'm not sure their problems about lean4web and GitHub occurs similarly in other environment, because of my environment is based on Japanese language.
I should have written about it.
Anyway, I thank you for your considering! I hope this suggestion may solve the problem.
@Seasawher @aconite-ac could you test the fix that is live on https://lean.math.hhu.de , please?
I have tested it, and this issue seems to be resolved.
Thanks!
@joneugster
I have tested it too by long aaaaaaaaaaaa
... , some double-byte character , some emoji.
And I found that this issue doesn't occur now.
Thanks!
I just can't solve it. I'm so confused.
see https://github.com/leanprover-community/lean4web/issues/7#issuecomment-2075498577
The bug seems to be caused by a difference between the character width used to calculate the assumed cursor position and the actual character width of the font.
But I don't know how to solve it...
Test Result
My Environment