-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
F5 / refresh scrolls to bottom #816
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
Comments
@lunny Could you configure the bounsource integration somehow so it at least creates some empty lines, so it is distinguishable? It's just a block of unformatted text not getting rendered by github markdown |
Don't know how to do that. Maybe @tboerger could know. |
I can confirm that I've this bug too on Gitea commit version Tested on:
I don't face to this bug using Google Chrome / Chromium. |
It's not possible to fix the bountysource plugin, there is an open pull request on the bountysource project, but it's not merged yet. |
I can also confirm it on Fx 51.0.1 |
Happens for me with Firefox 51.0.1 and 52.0 on |
Have the bottom scrolling problem here too with Firefox version 54.0. Chromium is not affected. |
At Firefox 55 the scroll always jumps to the input fields at refresh/load |
Just upgraded to 55.0.2 and the problem still persists :( |
@kuklinistvan Scroll jumps to the first input-field in the page, in this case it is on the top |
@lunny Isn't this a bug? As it is labeled as |
I think this is fixed by #2285 as it doesn't happen to me on firefox on current master. |
@daviian Pulled in current HEAD, no still happening (at least on my ff 55) |
I have just tested it with ff 55 again and I can't reproduce the issue. |
I recorded a screencast, with Firefox 55.0.1, and zero addons. Git commit e7653a6 . |
I see! So it only jumps if the input box with autofocus isn't in viewport. |
As of https://bugzilla.mozilla.org/show_bug.cgi?id=630493 it is a desired behaviour of firefox, therefore imo not relevant to gitea!? |
I don't know how other sites do this, but e.g. try that on https://www.dict.cc/ . There is too autofocus, but the page stays at his position after refresh. I tested various other pages too, e.g. https://duckduckgo.com . I don't know if that linked bug is really related to that. BTW: Previously, it just jumped to the bottom, but at some point the search was introduced, and now this is happening |
As far as I can say after testing around, the issue doesn't appear if searchbox above repositories and searchbox on explore page doesn't have autofocus. So linked bug is definitely related imo. |
So confirmed upstream bug / "feature" ? |
I am not in the position to decide on this. @lunny What do you say? |
This could be fixed removing |
@lafriks Or vue |
@lafriks Seems to be an issue in jquery.focus() too. https://stackoverflow.com/questions/4898203/jquery-focus-without-scroll @bkcsoft This Line 1708 in 2c3a229
leads to the same issue. Had to comment it out to prevent jumping in FF. This is the code from the new repo search Vue component |
Closing as wontfix since it's an browser issue and not related to gitea. |
Description
If I press F5 or click the browser's refresh button, the page gets reloaded, and automatically jumps to the bottom. This only happens on the dashboard for me.
(Url has no
#
anywhere, it's just the root (/gitea/
)EDIT: Also happens after login. And at the SSH-Keys page.
Below: Bounty plugin stuff I cannot remove which adds non github-conform markdown stuff not getting rendered- please fix
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: