load moar matches and save-scroll-state for player

This commit is contained in:
2021-11-15 22:25:34 +01:00
parent 2fc87ab4d8
commit 7130c13ac4
6 changed files with 90 additions and 14 deletions

View File

@@ -93,3 +93,11 @@ export const CreatePlayersArray = (stats) => {
}
return arr
}
export const scrollToPos = (pos = 0) => {
window.scrollTo({
top: pos,
left: 0,
behavior: 'smooth'
})
}