地図表示の挙動変更、位置情報への移動ボタンを実装

This commit is contained in:
harukin-expo-dev-env
2025-07-07 13:34:13 +00:00
parent 249f09bbc7
commit 3da4986a7c
10 changed files with 103 additions and 25 deletions

View File

@@ -29,8 +29,7 @@ export const CarouselBox = ({
useEffect(() => {
if (!carouselBadgeScrollViewRef.current) return;
const scrollToIndex = listIndex * (width / listUpStation.length) + 10;
console.log("scrollToIndex", scrollToIndex);
const scrollToIndex = (dotButton ? 28 : 22) * listIndex - (width / 2) + (dotButton ? 28 : 22) - 5;
carouselBadgeScrollViewRef.current.scrollTo({
x: scrollToIndex,
animated: true,