mirror of
https://github.com/vinta/awesome-python.git
synced 2026-05-14 08:58:19 +00:00
fix(website): make back-to-top scroll instant instead of smooth
The smooth scroll behavior felt sluggish on a 505-row page. Instant jump is more responsive for a utility button. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
bdc5c6c5d7
commit
1d05e98537
1 changed files with 1 additions and 1 deletions
|
|
@ -294,7 +294,7 @@ if (backToTop) {
|
|||
}
|
||||
});
|
||||
backToTop.addEventListener('click', function () {
|
||||
window.scrollTo({ top: 0, behavior: 'smooth' });
|
||||
window.scrollTo({ top: 0 });
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue