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

Mod description edit page scroll position glitch #502

Open
Codenade opened this issue Jul 20, 2023 · 1 comment
Open

Mod description edit page scroll position glitch #502

Codenade opened this issue Jul 20, 2023 · 1 comment
Labels
Area: Frontend Related to HTML, JS, CSS, or other browser things Priority: Low Type: Bug

Comments

@Codenade
Copy link

Codenade commented Jul 20, 2023

Description (What went wrong?):

When trying to edit the description of my mod I noticed that when I want to scroll to the bottom of my description.

When I scroll to about 3/4 of the way down the description scroll view position jumps up by itself by about 1/4.
When scrolling up it sometimes jumps down by about 1/6.
Also happens earlier if scrolling fast.

The issue can only be reproduced with javascript enabled.

Reproduction Steps (What did you do?):

  1. Open mod edit page with long enough description to necessitate scrolling
  2. Scroll down

Expected Behaviour (What do you think should have happened instead?):

Scrolling should be smooth.

Environment (OS/Browser/Plugins/etc):

OS: Windows 10 (19045.3208)
Browser: Firefox Developer Edition 116.0b7 and Microsoft Edge 114.0.1823.82
Plugins: -
Mod: https://spacedock.info/mod/3422/Inputbinder

Extra Information (Screenshots/Error Messages/Javascript Console Output):

Workaround

Use arrow keys and cursor to navigate.

Error messages

When the bug occours the following warning appears in the firefox console:

This site appears to use a scroll-linked positioning effect. This may not work well with asynchronous panning; see https://firefox-source-docs.mozilla.org/performance/scroll-linked_effects.html for further details and to join the discussion on related tools and features!

Part of the log:

13:44:32.500 Array [ (2) […] ] index.js:97:26
13:44:32.500 scroll { target: div.CodeMirror-vscrollbar, isTrusted: true, view: Window, detail: 0, layerX: 0, layerY: 0, which: 0, rangeOffset: 0, SCROLL_PAGE_UP: -32768, SCROLL_PAGE_DOWN: 32768, … } editor.js:1:34137
13:44:32.500 scroll { target: div.CodeMirror-scroll, isTrusted: true, view: Window, detail: 0, layerX: 0, layerY: 0, which: 0, rangeOffset: 0, SCROLL_PAGE_UP: -32768, SCROLL_PAGE_DOWN: 32768, … } editor.js:1:33993
13:44:32.503 This site appears to use a scroll-linked positioning effect. This may not work well with asynchronous panning; see https://firefox-source-docs.mozilla.org/performance/scroll-linked_effects.html for further details and to join the discussion on related tools and features! edit
13:44:32.503 4868.1 index.js:98:20
@HebaruSan HebaruSan added Type: Bug Priority: Low Area: Frontend Related to HTML, JS, CSS, or other browser things labels Jul 20, 2023
@Codenade
Copy link
Author

Codenade commented Oct 6, 2023

This seems to happen only when the mod description is very long.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Frontend Related to HTML, JS, CSS, or other browser things Priority: Low Type: Bug
Projects
None yet
Development

No branches or pull requests

2 participants