Skip to content
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

Use of space key causing weird cursor behaviour #3728

Closed
maxkratz opened this issue Mar 18, 2020 · 13 comments
Closed

Use of space key causing weird cursor behaviour #3728

maxkratz opened this issue Mar 18, 2020 · 13 comments
Assignees

Comments

@maxkratz
Copy link

Hi,

I've tested etherpad as docker container and I found a bug that shows up even if no special configuration gets applied.

The cursor jumps back to the beginning of a line if the user types in a space. I can reproduce this with docker-image 'latest', '1.8.0' and '1.7.5' on Chromium/Firefox (Ubuntu 18.04) and iPad Safari. Changing the theme to 'no-skin' did not help. (Furthermore there are no plugins installed at all.)

You will find a gif attached to this message for further description.

ezgif-2-3132bdf18dad

@muxator
Copy link
Contributor

muxator commented Mar 18, 2020

Reopening this issue thanks to a comment in #3663 by @sudoman.

This issue is probably related to #3663, but it may not be the same.

@muxator
Copy link
Contributor

muxator commented Mar 18, 2020

@maxkratz, is it possible for you to test #3729 and see if this problem is solved?

If you need help in integrating those changes, fell free to write here.

@maxkratz
Copy link
Author

@muxator I've pulled your pr and built a new docker-image out of it (using the provided Dockerfile). As far as I can tell, the issue persists and nothing changed. (Tested with chromium and firefox, both on linux.)

@maxkratz
Copy link
Author

@muxator I think I made a mistake. In my previous tests I did not clear the caches of all my browsers.
As soon as I always empty the cache(s), the Docker image with tag '1.8.0' (and older) does the job.

(Furthermore I am able to build a local Docker image out of this repository with tag '1.8.0' and everything works fine. If I use the latest version of the develop branch, the bug occurs!)

So in my opinion the error must be a change in code after version '1.8.0'.

@maxkratz
Copy link
Author

@muxator I've pulled your pr and built a new docker-image out of it (using the provided Dockerfile). As far as I can tell, the issue persists and nothing changed. (Tested with chromium and firefox, both on linux.)

My comment above was wrong as I did not clear the browsers cache.

@muxator I've tested your pr again with proper clearing of my browsers cache. Your change does indeed resolve the problem!

I was able to build a local Docker image from your pr and this version just works as expected. Thank you for your help!

@muxator
Copy link
Contributor

muxator commented Mar 18, 2020

Thanks @maxkratz for validating it. As you can see these sort of issues are finky to debug, and more eyeballs are always a good protection net.

I'll wait for further tests by other users and merge #3729.

p.s.: I am starting to suspect that the Etherpad's caching behaviour needs a rework

muxator added a commit that referenced this issue Mar 19, 2020
This was a preparatory commit for 3292429 (which introduced a bug, see
issue #3728) and modified the tests for issue #3620.

Commit 155a895 per se did not introduce any bugs, but was difficult to
inspect because of its size. For this, the corresponding PR (#3622) should not
have been accepted.

--HG--
branch : revert-3622
@muxator
Copy link
Contributor

muxator commented Mar 19, 2020

Confirmed that this debilitating issue was definitely caused by 3292429.

Pulled in #3729 that fixes it, thanks for reporting.

n.b.: issue #3663 is unrelated

@JohnMcLear
Copy link
Member

Thanks for quick revert, correct thing to do.

https://github.com/ether/etherpad-lite/pull/3622/files#r394967755

So @tombriles I put a comment on the offending line. Please review and fix.

@manu-p
Copy link

manu-p commented Mar 20, 2020

Hi, I guess I'm facing the same issue and I would like to apply the corrections as of mentioned here but I'm not a dev and also I don't know the way I could just download these 2 files in order to replace them in my installation.

Where can I find these files, please?

@maxkratz
Copy link
Author

@manu-p How did you install etherpad?

Normally a fresh installation or an update of your current installation should fix the issue. (Do not repeat my mistake and clear your browsers cache before testing :-).)

@JohnMcLear
Copy link
Member

git pull

@maxkratz
Copy link
Author

@JohnMcLear If he is using a prebuilt Docker image this is not going to work.

@manu-p
Copy link

manu-p commented Mar 20, 2020

Thanks for your help, I just did a new fresh install following the installation procedure, so I get 1.8.0 but have not been able to check if it's correcting the strange cursor behavior because I get the infinite "Loading" syndrome...
Gonna open another issue for this. :-/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants