diff options
| author | 2023-03-04 13:47:11 +0100 | |
|---|---|---|
| committer | 2023-03-04 13:47:11 +0100 | |
| commit | 1c1e63c6ad27d0ebd34324b09f176b6767adc0cf (patch) | |
| tree | a0d63fef48aa920a0a6c432045a74805e175c61f /p/scripts | |
| parent | a7e14284855cc49ba3e85ca3e549845e6b5c693b (diff) | |
fixed: Global view - Stick the article to the top when opened (#5153)
Diffstat (limited to 'p/scripts')
| -rw-r--r-- | p/scripts/main.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js index bca6c2407..28886180e 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -447,9 +447,7 @@ function toggleContent(new_active, old_active, skipping) { // when skipping, this feels more natural if it’s not so near the top new_pos -= document.body.clientHeight / 4; } - if (relative_move) { - new_pos += box_to_move.scrollTop; - } + box_to_move.scrollTop = new_pos; } |
