スクロール位置を調整
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
Reference in New Issue
Block a user