mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-17 02:56:16 +08:00
hopefully fixed scrolling issue
This commit is contained in:
parent
06866b9263
commit
30a85fc858
1 changed files with 2 additions and 2 deletions
|
@ -391,7 +391,7 @@ $("#leaderboardsWrapper #leaderboards .leftTableJumpToMe").click(async (e) => {
|
|||
$("#leaderboardsWrapper #leaderboards .leftTableWrapper").animate(
|
||||
{
|
||||
scrollTop:
|
||||
rowHeight * currentRank[15].rank -
|
||||
rowHeight * Math.min(currentRank[15].rank, 50) -
|
||||
$(
|
||||
"#leaderboardsWrapper #leaderboards .leftTableWrapper"
|
||||
).outerHeight() /
|
||||
|
@ -423,7 +423,7 @@ $("#leaderboardsWrapper #leaderboards .rightTableJumpToMe").click(async (e) => {
|
|||
$("#leaderboardsWrapper #leaderboards .rightTableWrapper").animate(
|
||||
{
|
||||
scrollTop:
|
||||
rowHeight * currentRank[60].rank -
|
||||
rowHeight * Math.min(currentRank[60].rank, 50) -
|
||||
$(
|
||||
"#leaderboardsWrapper #leaderboards .rightTableWrapper"
|
||||
).outerHeight() /
|
||||
|
|
Loading…
Add table
Reference in a new issue