mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-13 15:36:42 +08:00
smooth scroll for scrollToTopButton (#1860) by yourealt
* added more javascript quotes * smooth scroll for scrollToTopButton
This commit is contained in:
parent
c973f1a231
commit
1d8d4d05ad
1 changed files with 1 additions and 1 deletions
|
@ -255,7 +255,7 @@ $(".merchBanner .fas").click((event) => {
|
|||
});
|
||||
|
||||
$(".scrollToTopButton").click((event) => {
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({ top: 0, behavior: 'smooth' });
|
||||
});
|
||||
|
||||
$(document).on("click", "#bottom .leftright .right .current-theme", (e) => {
|
||||
|
|
Loading…
Reference in a new issue