smooth scroll for scrollToTopButton (#1860) by yourealt

* added more javascript quotes

* smooth scroll for scrollToTopButton
This commit is contained in:
yourealt 2021-09-14 19:51:53 -04:00 committed by GitHub
parent c973f1a231
commit 1d8d4d05ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) => {