mirror of
https://ghproxy.com/https://github.com/StreakingMan/solvable-sheep-game
synced 2025-05-24 02:17:36 +08:00
fix: 排行榜滚动定位
This commit is contained in:
parent
fd1d429f59
commit
5353a40416
|
@ -97,7 +97,10 @@ const Score: FC<{
|
|||
if (_userId) {
|
||||
setTimeout(() => {
|
||||
const rankEl = document.getElementById(_userId + 'el');
|
||||
rankEl?.scrollIntoView({ behavior: 'smooth' });
|
||||
rankEl?.scrollIntoView({
|
||||
behavior: 'smooth',
|
||||
block: 'center',
|
||||
});
|
||||
}, 1000);
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user