Padding on bottom and auto-scrolling commands; Fixing Spotify artists library process

This commit is contained in:
James Barnsley
2018-10-26 16:06:31 +13:00
parent f95651116a
commit 57c95adbc3
21 changed files with 14079 additions and 10744 deletions

View File

@ -16,14 +16,7 @@ export default class extends React.Component{
handleClick(e){
if (!this.props.retainScroll){
if (this.props.scrollTo){
var element = document.getElementById(this.props.scrollTo);
if (element){
element.scrollIntoView();
}
} else {
helpers.scrollToTop();
}
helpers.scrollTo(this.props.scrollTo, (this.props.scrollTo));
}
}