From 39bb2301d31fac9d0d0c6adb7e6180cf8adbfb09 Mon Sep 17 00:00:00 2001 From: xfy Date: Tue, 19 May 2026 10:56:57 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E9=99=8D=E4=BD=8E=E6=8A=98?= =?UTF-8?q?=E5=8F=A0=E8=A7=A6=E5=8F=91=E9=98=88=E5=80=BC=E4=BB=8E=2025%=20?= =?UTF-8?q?=E5=88=B0=208%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit COLLAPSE_THRESHOLD 从 0.25f 下调至 0.08f, 使月视图→周视图的折叠更易触发,下拉展开同理。 Co-Authored-By: Claude Opus 4.7 (1M context) --- .../src/commonMain/kotlin/plus/rua/project/ui/CalendarUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/src/commonMain/kotlin/plus/rua/project/ui/CalendarUtils.kt b/shared/src/commonMain/kotlin/plus/rua/project/ui/CalendarUtils.kt index 7afce9d..9b812cb 100644 --- a/shared/src/commonMain/kotlin/plus/rua/project/ui/CalendarUtils.kt +++ b/shared/src/commonMain/kotlin/plus/rua/project/ui/CalendarUtils.kt @@ -10,7 +10,7 @@ import kotlinx.datetime.plus const val START_PAGE = Int.MAX_VALUE / 2 /** 折叠判定阈值:折叠时 progress > 此值触发,展开时 progress < (1-此值) 触发 */ -const val COLLAPSE_THRESHOLD = 0.25f +const val COLLAPSE_THRESHOLD = 0.08f /** 滑动偏移插值阈值:abs(offsetFraction) > 此值时启用插值 */ const val OFFSET_FRACTION_THRESHOLD = 0.01f