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