From de79bc69af2ee16db718cded45098b55ce26f4bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Bara=C3=BAna?= Date: Fri, 12 Jul 2024 05:21:30 -0300 Subject: [PATCH] Change the scroll behavior from when clicking a notebook sections (#2705) --- assets/js/hooks/session.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/hooks/session.js b/assets/js/hooks/session.js index e1baf8e56..c0926a0d2 100644 --- a/assets/js/hooks/session.js +++ b/assets/js/hooks/session.js @@ -575,7 +575,7 @@ const Session = { if (sectionButton) { const sectionId = sectionButton.getAttribute("data-section-id"); const section = this.getSectionById(sectionId); - section.scrollIntoView({ behavior: "smooth", block: "start" }); + section.scrollIntoView({ behavior: "instant", block: "start" }); } },