codepod-io / codepod

Codepod IDE: Scalable Interactive Coding
https://codepod.io
MIT License
71 stars 16 forks source link

[Bug] The cursor in code editors always has a offset to its actual position. #484

Open li-xin-yi opened 1 year ago

li-xin-yi commented 1 year ago

I feel very uncomfortable to test my code in this case.

cursor-offset

lihebi commented 12 months ago

I can't reproduce that. Maybe try a clean start?

senwang86 commented 12 months ago

I can't produce the behavior on Safari/Mac either.

li-xin-yi commented 12 months ago

I also tried on Safari/Mac, no such behaviors. But it frequently occurs on Chrome.

lihebi commented 12 months ago

I use chrome, I cannot reproduce.

li-xin-yi commented 12 months ago

start with an empty code node, everything works normally within the first 2 typed letters:

image

But the cursor starts to drift after typing the third one.

Besides, I feel the font family looks different since PR #467 , both the code editor and the dashboard:

image

But no such changes on Safari.

lihebi commented 12 months ago

But the cursor starts to drift after typing the third one.

I know what you mean, and I couldn't reproduce it.

I suspect it's some caching problem. Try clone a fresh copy of source code, and create a fresh docker stack, and see if the issue disappears.

lihebi commented 12 months ago

I feel the font family looks different since PR #467

It should have been caused by #468 when I switched to Vite, probably not a big deal.