Merge branch 'unsmooth-scroll' into 'develop'

ScollTopButton: disable smooth scrolling

See merge request soapbox-pub/soapbox-fe!1492
environments/review-develop-3zknud/deployments/180
Alex Gleason 2 years ago
commit 908623622e

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

Loading…
Cancel
Save