fix: DaysNav transition 중 상호작용 가능하도록 변경

해당 설정 때문에 모바일에서 연속으로 days를 넘기면 좌우 leaf가 튀어나오던 현상이 있었음
This commit is contained in:
sechan100 2024-10-16 11:32:34 +09:00
parent 9265a4d7fd
commit 17ded3743f
3 changed files with 2 additions and 3 deletions

View file

@ -189,7 +189,7 @@ export const DaysNav = ({ currentDay, onDayClick }: DaysNavProps) => {
ref={swiperRef}
passiveListeners={false}
touchMoveStopPropagation={true} // touchmove 이벤트가 부모로 전파되지 않도록 한다.
preventInteractionOnTransition={true} // transition 중에는 interaction을 막는다.
preventInteractionOnTransition={false} // transition 중에는 interaction을 막는다.
modules={[Navigation]}
onToEdge={async(swiper: SwiperClass) =>{
// 3개 이하는 초기값 설정이 아직 안되어있는 상태임

View file

@ -150,7 +150,6 @@
width: 100%;
height: 100%;
border-radius: 5px;
// background-color: rgba(203, 203, 203, 0.5);
background-color: hsla(var(--color-accent-1-hsl), 0.5)
}
}

File diff suppressed because one or more lines are too long