mirror of
https://github.com/sechan100/daily-routine-2.git
synced 2026-07-22 05:37:51 +00:00
fix: DaysNav transition 중 상호작용 가능하도록 변경
해당 설정 때문에 모바일에서 연속으로 days를 넘기면 좌우 leaf가 튀어나오던 현상이 있었음
This commit is contained in:
parent
9265a4d7fd
commit
17ded3743f
3 changed files with 2 additions and 3 deletions
|
|
@ -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개 이하는 초기값 설정이 아직 안되어있는 상태임
|
||||
|
|
|
|||
|
|
@ -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
Loading…
Reference in a new issue