aboutsummaryrefslogtreecommitdiff
path: root/p/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'p/scripts')
-rw-r--r--p/scripts/global_view.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/p/scripts/global_view.js b/p/scripts/global_view.js
index 366729485..2b57ecf9e 100644
--- a/p/scripts/global_view.js
+++ b/p/scripts/global_view.js
@@ -34,9 +34,9 @@ function load_panel(link) {
document.getElementById('overlay').classList.add('visible');
panel.classList.add('visible');
- // force le démarrage du scroll en haut.
- // Sans ça, si l’on scroll en lisant une catégorie par exemple,
- // en en ouvrant une autre ensuite, on se retrouve au même point de scroll
+ // Force the initial scroll to the top.
+ // Without it, if one scrolls down in a category (for instance)
+ // and then open another one, we risk being at the same scroll position
panel.scrollTop = 0;
document.documentElement.scrollTop = 0;