Skip to content

Commit

Permalink
fixed: Global view - Stick the article to the top when opened (#5153)
Browse files Browse the repository at this point in the history
  • Loading branch information
math-GH committed Mar 4, 2023
1 parent a7e1428 commit 1c1e63c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions p/scripts/main.js
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1c1e63c

Please sign in to comment.