From 19c9feb6de17e6488cb8171801a3fdbcda5c0a94 Mon Sep 17 00:00:00 2001 From: xfy Date: Thu, 23 Jul 2026 15:45:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E4=BF=AE=E5=A4=8D=E6=BB=91=E5=8A=A8?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E5=B9=B4=E4=BB=BD=E5=90=8E=E5=86=8D=E8=BF=9B?= =?UTF-8?q?=E5=B9=B4=E8=A7=86=E5=9B=BE=E5=AF=BC=E8=87=B4=E7=9A=84=E9=A1=B5?= =?UTF-8?q?=E7=A0=81=E8=81=94=E5=8A=A8=E9=94=99=E4=BD=8D=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/kotlin/plus/rua/project/ui/CalendarMonthView.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/src/main/kotlin/plus/rua/project/ui/CalendarMonthView.kt b/core/src/main/kotlin/plus/rua/project/ui/CalendarMonthView.kt index d4cd064..55cd5cf 100644 --- a/core/src/main/kotlin/plus/rua/project/ui/CalendarMonthView.kt +++ b/core/src/main/kotlin/plus/rua/project/ui/CalendarMonthView.kt @@ -178,12 +178,9 @@ fun CalendarMonthView( pageCount = { Int.MAX_VALUE } ) - // 视图切换时自动关闭菜单并重置年视图 Pager + // 视图切换时自动关闭菜单 LaunchedEffect(isYearView) { isMenuExpanded = false - if (isYearView && yearPagerState.currentPage != START_PAGE) { - yearPagerState.scrollToPage(START_PAGE) - } } // 年视图翻页时同步 yearViewYear(跟踪 settled page 差值)