Fix scroll-to-top on Notifications

This commit is contained in:
Justin 2022-03-03 10:13:45 -05:00
parent 8bb19851b2
commit 74af8c0e91
1 changed files with 5 additions and 1 deletions

View File

@ -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);
} }