-
-
Notifications
You must be signed in to change notification settings - Fork 533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ui.editor cursor jumps to start of text intermittently #2611
Comments
Oh wow, thanks for reporting this issue, @Gilser! This UX feels really bad. 😕 I thought we might just need to add We'll need to further investigate the problem. |
i've been using nicegui to build some intranet apps. i don't get the cursor jumping problem when i'm deploying locally, but when i deploy on AWS behind a VPN then it's really really bad - cursor jumping every 5 characters or so even if i have existing text. could it be latency related? |
as a further bit of info: i can reproduce the problem quite easily in the controls demo here: https://nicegui.io/documentation/editor |
Thanks, @intrinsically! I think I found a lead: When setting nicegui/nicegui/static/nicegui.js Lines 162 to 164 in ee14497
Let me try to explain what I think is happening:
So I think we either need to change |
ah great stuff falko, interesting to get a bit of info on how the underlying interaction model works. what's a good way for me to set up my environment to start debugging this stuff myself? i guess i'll just check out the project and see if i can build/run it. i'm interested in debugging why some components (like the markdown viewer) don't seem to be rendered (or capable of holding a value) in a tab until the user clicks on the tab. p.s. not sure if you are interested, but i program using nicegui using classes rather than functions, have developed a few techniques that might be useful if you are interested. took a few tried to get it right. i couldn't find any class-based examples in the examples directory... |
umm wow, i just cloned it, started up venv and pycharm and it worked immediately. good stuff... possibly the easiest environment i've ever had to set up |
Description
This is able to be replicated from the nicegui documentation pages in addition to in test applications.
To cause the issue, clear out any existing text in the ui.editor input control, then rapidly start typing characters into it. Especially when there are relatively few characters in the field, the cursor will jump to the beginning of the input which then causes text being typed to start going in before anything else inputted.
Can happen a few times as text is being inputted but it seems to stop after some number of characters are already in the field. Fairly easy to trigger by clearing out all text before quickly inputting more.
Does seem to only be triggered when quickly entering information - by slowly inputting text I've been unable to replicate so far.
The text was updated successfully, but these errors were encountered: