fix(numpad): 修小键盘点击卡顿,touch-action: none → manipulation
诊断:用户反馈仅小键盘点击有延迟感,其他按钮正常。范围缩小后定位到
.numpad-button 上的 touch-action: none(上游 e178a079 引入)与 F7
内部 tap 事件处理叠加,让 click 事件合成慢一拍。backspace(自定义
.numpad-backspace-button 类)不受影响,刚好印证范围。
修复:改为 touch-action: manipulation(W3C 标准"快速点击"值),禁双
击缩放消除老 300ms 延迟,但保留 click 事件正常合成。
FORK.md #11 状态:🔍 调查中 → 🟢 已完成,附真因记录避免后续误诊。
This commit is contained in:
@@ -531,7 +531,10 @@ watch(() => props.flipNegative, (newValue) => {
|
||||
align-items: center;
|
||||
box-sizing: border-box;
|
||||
user-select: none;
|
||||
touch-action: none;
|
||||
/* 上游设的 touch-action: none 在 F7 tap 处理下让 click 慢一拍(小键盘卡顿
|
||||
的实际根因,不是网络/渲染)。改 manipulation:禁双击缩放 + 消除 300ms
|
||||
老延迟,但保留 click 正常合成。详见 FORK.md #11 */
|
||||
touch-action: manipulation;
|
||||
}
|
||||
|
||||
.numpad-button-num {
|
||||
|
||||
Reference in New Issue
Block a user