Change the scroll behavior from when clicking a notebook sections (#2705)

This commit is contained in:
Hugo Baraúna 2024-07-12 05:21:30 -03:00 committed by GitHub
parent 4c6e1f0ad2
commit de79bc69af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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" });
}
},