地図表示の挙動変更、位置情報への移動ボタンを実装
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user