- useHabitDrag: onDrop 经 ref 桥接实时闭包 —— bind/bindHandle 空依赖 useCallback 固化了首次渲染(groups=[] 数据未加载)的落位函数, 松手 静默早退, 顺序永远不变 - 把手路径挂非 passive touchstart preventDefault: 规范上禁止浏览器对 整个触摸的默认处理 (含滚动), 与 touch-action:none 双保险 - 把手触区放大 (36px 高), 降低按到行体触发不可靠长按路径的概率
This commit is contained in:
@@ -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); }
|
||||
|
||||
Reference in New Issue
Block a user