sforkowany z mirror/soapbox
Merge branch 'unsmooth-scroll' into 'develop'
ScollTopButton: disable smooth scrolling See merge request soapbox-pub/soapbox-fe!1492dnd
commit
908623622e
|
@ -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 = () => {
|
||||
|
|
Ładowanie…
Reference in New Issue