Merge branch 'unsmooth-scroll' into 'develop'

ScollTopButton: disable smooth scrolling

See merge request soapbox-pub/soapbox-fe!1492
dnd
Alex Gleason 2022-06-03 19:11:04 +00:00
commit 908623622e
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -49,7 +49,7 @@ const ScrollTopButton: React.FC<IScrollTopButton> = ({
}, 150, { trailing: true }), [autoload, threshold, autoloadThreshold]);
const scrollUp = () => {
window.scrollTo({ top: 0, behavior: 'smooth' });
window.scrollTo({ top: 0 });
};
const handleClick: React.MouseEventHandler = () => {