Home: move to the top if the clicked tab is focus
All checks were successful
/ depoly (push) Successful in 1m4s
All checks were successful
/ depoly (push) Successful in 1m4s
This commit is contained in:
parent
0f357a66e8
commit
cecebda39b
1 changed files with 6 additions and 0 deletions
|
@ -282,6 +282,12 @@ const Home: ParentComponent = (props) => {
|
||||||
if (items.length > idx) {
|
if (items.length > idx) {
|
||||||
items.item(idx).scrollIntoView({ block: "start", behavior: "smooth" });
|
items.item(idx).scrollIntoView({ block: "start", behavior: "smooth" });
|
||||||
}
|
}
|
||||||
|
if (isTabFocus(idx)) {
|
||||||
|
items.item(idx).scrollTo({
|
||||||
|
top: 0,
|
||||||
|
behavior: "smooth",
|
||||||
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const openFullScreenToot = (
|
const openFullScreenToot = (
|
||||||
|
|
Loading…
Reference in a new issue