動作原理を修正
This commit is contained in:
parent
40b7437c87
commit
6440cff928
@ -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 }),
|
||||||
|
Loading…
Reference in New Issue
Block a user