just some more updates
This commit is contained in:
@@ -52,13 +52,13 @@ class Maps extends React.Component {
|
||||
window.removeEventListener("scroll", this.scrollListener);
|
||||
}
|
||||
|
||||
findSecondLast(array) {
|
||||
return array[array.length - 2];
|
||||
findLateIndex(array) {
|
||||
return array[array.length - 5];
|
||||
}
|
||||
|
||||
handleScroll = () => {
|
||||
if (this.state.breakload && this.state.fetchsize > this.state.mapTimes.length) {
|
||||
const player = this.findSecondLast(this.state.mapTimes);
|
||||
const player = this.findLateIndex(this.state.mapTimes);
|
||||
var lastLi = document.getElementById('maps/' + player.steamID);
|
||||
var lastLiOffset = lastLi.offsetTop + lastLi.clientHeight;
|
||||
var pageOffset = window.pageYOffset + window.innerHeight;
|
||||
@@ -99,7 +99,7 @@ class Maps extends React.Component {
|
||||
</p>
|
||||
<p className="text-center ">
|
||||
<NavLink to={'/leaderboard/'}>
|
||||
<b>leaderboard</b>
|
||||
<b>LeaderBoard</b>
|
||||
</NavLink>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user