Revert "修复首次启动切换年视图无动画的问题"
This reverts commit 216ebbf990555f8282371199b8d1cc4bb86d9b2e.
This commit is contained in:
parent
216ebbf990
commit
c096651e0f
@ -270,7 +270,8 @@ fun CalendarMonthView(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 年视图层:始终组合以避免首次进入时的组合延迟导致动画丢失
|
// 年视图层:HorizontalPager 支持左右滑动切年
|
||||||
|
if (viewModel.isYearView || yearProgress > 0.01f) {
|
||||||
HorizontalPager(
|
HorizontalPager(
|
||||||
state = yearPagerState,
|
state = yearPagerState,
|
||||||
beyondViewportPageCount = 1,
|
beyondViewportPageCount = 1,
|
||||||
@ -310,6 +311,7 @@ fun CalendarMonthView(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// BottomCard:年视图时隐藏
|
// BottomCard:年视图时隐藏
|
||||||
if (yearProgress < 0.01f) {
|
if (yearProgress < 0.01f) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user