値調整
This commit is contained in:
parent
17239f3305
commit
8dbae5c66b
@ -183,17 +183,17 @@ export const EachTrainInfoCore = ({
|
||||
if (position == -1) return () => {};
|
||||
if (trainDataWidhThrough[position].split(",")[1] == "通過") {
|
||||
LayoutAnimation.configureNext({
|
||||
duration: 200,
|
||||
duration: 400,
|
||||
update: { type: "easeInEaseOut", springDamping: 0.6 },
|
||||
});
|
||||
setShowThrew(true);
|
||||
}
|
||||
if(position < 5) return() => {}; // 5駅以内の場合はスクロールしない
|
||||
const count = position * 44-40;
|
||||
const count = position * 44-50;
|
||||
// 0.5秒待機してからスクロール
|
||||
setTimeout(
|
||||
() => ScrollViewRef.current?.scrollTo({ y: count, animated: true }),
|
||||
500
|
||||
400
|
||||
);
|
||||
setIsJumped(true);
|
||||
}, [points]);
|
||||
|
Loading…
Reference in New Issue
Block a user