aboutsummaryrefslogtreecommitdiff
path: root/p/scripts
diff options
context:
space:
mode:
authorGravatar maTh <math-home@web.de> 2023-03-04 13:47:11 +0100
committerGravatar GitHub <noreply@github.com> 2023-03-04 13:47:11 +0100
commit1c1e63c6ad27d0ebd34324b09f176b6767adc0cf (patch)
treea0d63fef48aa920a0a6c432045a74805e175c61f /p/scripts
parenta7e14284855cc49ba3e85ca3e549845e6b5c693b (diff)
fixed: Global view - Stick the article to the top when opened (#5153)
Diffstat (limited to 'p/scripts')
-rw-r--r--p/scripts/main.js4
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;
}