From 1c1e63c6ad27d0ebd34324b09f176b6767adc0cf Mon Sep 17 00:00:00 2001 From: maTh Date: Sat, 4 Mar 2023 13:47:11 +0100 Subject: fixed: Global view - Stick the article to the top when opened (#5153) --- p/scripts/main.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'p/scripts') 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; } -- cgit v1.2.3