sforkowany z mirror/soapbox
Fix scroll-to-top on Notifications
rodzic
8bb19851b2
commit
74af8c0e91
|
@ -81,8 +81,12 @@ class TimelineQueueButtonHeader extends React.PureComponent {
|
|||
}
|
||||
}, 150, { trailing: true });
|
||||
|
||||
handleClick = e => {
|
||||
scrollUp = () => {
|
||||
window.scrollTo({ top: 0, behavior: 'smooth' });
|
||||
};
|
||||
|
||||
handleClick = e => {
|
||||
setTimeout(this.scrollUp, 10);
|
||||
this.props.onClick(e);
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue