スクロール位置を調整

This commit is contained in:
harukin-expo-dev-env
2025-08-31 09:53:38 +00:00
parent 8b74273fed
commit 2967837dd5

View File

@@ -200,7 +200,9 @@ export const ExGridView: FC<{
useEffect(() => {
const getCurrentTime = dayjs().hour();
setTimeout(() => {
const goTo = getCurrentTime * 60;
const keyTime =
getCurrentTime - 4 <= 0 ? getCurrentTime + 24 : getCurrentTime;
const goTo = keyTime * 60;
if (goTo > 400) {
scrollRef2.current?.scrollTo({ y: goTo - 300, animated: true });
}