fix(V0.2): 打卡排序闭包陈旧 + 把手拖动双保险
Docker Build and Push / build-image (push) Successful in 1m1s

- useHabitDrag: onDrop 经 ref 桥接实时闭包 —— bind/bindHandle 空依赖
  useCallback 固化了首次渲染(groups=[] 数据未加载)的落位函数, 松手
  静默早退, 顺序永远不变
- 把手路径挂非 passive touchstart preventDefault: 规范上禁止浏览器对
  整个触摸的默认处理 (含滚动), 与 touch-action:none 双保险
- 把手触区放大 (36px 高), 降低按到行体触发不可靠长按路径的概率
This commit is contained in:
jif2.zhang
2026-10-25 01:31:27 +08:00
parent 2725f00f68
commit 215263bf2f
3 changed files with 25 additions and 6 deletions
+3 -1
View File
@@ -682,7 +682,9 @@ body.me-safe-top .app-safe-top { height: 0; }
指针流不会被滚动抢占取消, 是 Android WebView 上唯一可靠的拖动入口 */
.grip {
touch-action: none; -webkit-user-select: none; user-select: none;
color: #c2c7cf; font-size: 14px; line-height: 1; padding: 8px 2px;
color: #c2c7cf; font-size: 14px; line-height: 1;
padding: 14px 6px; margin: -8px 0; min-width: 26px; min-height: 36px;
display: inline-flex; align-items: center; justify-content: center;
cursor: grab; flex-shrink: 0; align-self: center;
}
.grip:active { color: var(--color-primary); }