From c482aa3ba7fd6d1c98042e8a7c63187dd82e63d7 Mon Sep 17 00:00:00 2001 From: DXC Date: Thu, 12 Mar 2026 12:50:27 +0800 Subject: [PATCH] style: optimize touch action for interactive elements without blocking pinch zoom --- inventory-web/src/style.css | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/inventory-web/src/style.css b/inventory-web/src/style.css index 15a411f..0c81aaa 100644 --- a/inventory-web/src/style.css +++ b/inventory-web/src/style.css @@ -75,4 +75,22 @@ html, body { /* 注意:原文件中关于 button, .card 的样式已被删除, 因为你的项目中引入了 Element Plus, 保留原生 button 样式会和 Element Plus 组件产生冲突。 -*/ \ No newline at end of file +*/ + +/* ------------------------------------------------- + 移动端/平板端触控优化 + 移除300ms延迟,防止双击放大,但保留双指缩放 + ------------------------------------------------- +*/ +a, +button, +input, +textarea, +select, +.el-button, +.el-checkbox, +.el-switch, +.el-table__row, +.el-pagination { + touch-action: manipulation; +} \ No newline at end of file