kicer
2c3377a96b
fix(ui): 抽屉删除按钮两 bug 终极修复
Bug1(触屏每行下面漏 ×):
触屏设备在某些 WebView 上 (hover: hover) 命中,导致触摸后 :hover
持续附着 -> .conv-del-inline 一直可见
-> 把媒体查询从 (hover: hover) 收紧到 (hover: hover) and (pointer: fine)
-> 触屏 pointer:coarse 不命中,内联 × 永远 display:none
Bug2(滑开后无法滑回去):
onDown 记录 wasSwiped,horiz 识别后调 collapseAllSwiped() 时把自己
swiped 类也清掉了,onMove 后半段走了「未滑开」分支,无法右滑回去
修法:
- collapseAllSwiped(except) 接受「排除自己」参数
- 重写 onMove:touch 期间 item.style.transition='none' 避免动画粘滞
统一 clamp 到 [-60, 0]:base=-60(已 swiped)/0(未 swiped) + dx
- onUp 恢复 transition 让 snap 有动画
2026-09-03 20:28:40 +08:00
..
2026-09-03 20:28:40 +08:00
2026-09-03 10:10:13 +08:00
2026-09-02 17:22:00 +08:00
2026-09-02 21:45:46 +08:00
2026-09-02 17:20:43 +08:00
2026-09-03 10:10:13 +08:00
2026-09-03 07:57:55 +08:00
2026-09-02 11:17:43 +08:00
2026-09-02 17:38:07 +08:00
2026-09-02 23:09:04 +08:00
2026-09-02 10:31:42 +08:00
2026-09-02 09:57:04 +08:00
2026-09-03 07:57:55 +08:00
2026-08-31 15:26:44 +08:00
2026-09-01 23:05:20 +08:00