KSP-SpaceDock / SpaceDock

Current Codebase (Python /Flask)
https://spacedock.info
Other
72 stars 33 forks source link

Mod description edit page scroll position glitch #502

Open Codenade opened 11 months ago

Codenade commented 11 months ago

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
Codenade commented 9 months ago

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