refactor: 降低折叠触发阈值从 25% 到 8%

COLLAPSE_THRESHOLD 从 0.25f 下调至 0.08f,
使月视图→周视图的折叠更易触发,下拉展开同理。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
xfy 2026-05-19 10:56:57 +08:00
parent 57f61987df
commit 39bb2301d3

View File

@ -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