Merge branch 'fix-scroll-top' into 'develop'
Fix scroll-to-top on Notifications See merge request soapbox-pub/soapbox-fe!1068
This commit is contained in:
commit
7d0bf5e5e6
|
@ -81,8 +81,12 @@ class TimelineQueueButtonHeader extends React.PureComponent {
|
||||||
}
|
}
|
||||||
}, 150, { trailing: true });
|
}, 150, { trailing: true });
|
||||||
|
|
||||||
handleClick = e => {
|
scrollUp = () => {
|
||||||
window.scrollTo({ top: 0, behavior: 'smooth' });
|
window.scrollTo({ top: 0, behavior: 'smooth' });
|
||||||
|
};
|
||||||
|
|
||||||
|
handleClick = e => {
|
||||||
|
setTimeout(this.scrollUp, 10);
|
||||||
this.props.onClick(e);
|
this.props.onClick(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue