動作原理を修正

This commit is contained in:
harukin-expo-dev-env 2024-10-23 07:48:05 +00:00
parent 40b7437c87
commit 6440cff928

View File

@ -188,7 +188,8 @@ export const EachTrainInfoCore = ({
}); });
setShowThrew(true); setShowThrew(true);
} }
const count = position * 44-30; if(position < 5) return() => {}; // 5駅以内の場合はスクロールしない
const count = position * 44-40;
// 0.5秒待機してからスクロール // 0.5秒待機してからスクロール
setTimeout( setTimeout(
() => ScrollViewRef.current?.scrollTo({ y: count, animated: true }), () => ScrollViewRef.current?.scrollTo({ y: count, animated: true }),