go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
43.24k stars 5.32k forks source link

Typing in comment box seems to have fundamental race condition, scrambles the order of letters on slow devices #21883

Closed ell1e closed 9 months ago

ell1e commented 1 year ago

Description

Typing in comment box seems to have fundamental race condition and seems to scramble the order of letters on slow devices in the comment box. Needless to say, this makes typing kind of a huge pain. I can reproduce this on my Allwinner PinePhone in Firefox with codeberg.org at least, I imagine it might also show with something like an old Raspberry 2 or 3 if you type fast enough.

(I assume it also reproduces on the demo site, I just don't have the login credentials for that one here rn since I'm traveling, that's also why I'm using the phone and ran into this)

Gitea Version

1.17.3+104-g5904fd9

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Accessing it via Linux Wayland (not Android)

How are you running Gitea?

Using Codeberg instance

Database

No response

yardenshoham commented 1 year ago

Can you post a video showing the issue?

ell1e commented 1 year ago

The most horrifying out of order scrambling doesn't reproduce while the screen recorder runs, sorry. Easily on this device without the recorder though, you can even see the insert cursor jitter madly to older outdated positions when it inserts it wrong. No such issue on GitHhub or GitLab or any other web page I ever used on this.

yardenshoham commented 1 year ago

I'm not able to reproduce

wxiaoguang commented 9 months ago

This problem should have been fixed by " Introduce GitHub markdown editor, keep EasyMDE as fallback #23876 ", now the editor uses native textarea, there shouldn't be any input problem.

ell1e commented 9 months ago

I can confirm this was fixed, thanks so much. :heart: