fix: 2
This commit is contained in:
@@ -189,6 +189,8 @@ function Index() {
|
||||
);
|
||||
}
|
||||
|
||||
const [scrollToTarget, setScrollToTarget] = useState("");
|
||||
|
||||
return (
|
||||
<ScrollView
|
||||
className={styles["detail-page"]}
|
||||
@@ -199,6 +201,8 @@ function Index() {
|
||||
}}
|
||||
enhanced
|
||||
showScrollbar={false}
|
||||
scrollIntoView={scrollToTarget}
|
||||
scroll-with-animation
|
||||
>
|
||||
{/* custom navbar */}
|
||||
<View
|
||||
@@ -278,6 +282,7 @@ function Index() {
|
||||
game_id={Number(detail.id)}
|
||||
message_id={message_id ? Number(message_id) : undefined}
|
||||
publisher_id={Number(detail.publisher_id)}
|
||||
onScrollTo={setScrollToTarget}
|
||||
/>
|
||||
{/* sticky bottom action bar */}
|
||||
<StickyBottom
|
||||
|
||||
Reference in New Issue
Block a user