style: optimize touch action for interactive elements without blocking pinch zoom
This commit is contained in:
@ -76,3 +76,21 @@ html, body {
|
|||||||
因为你的项目中引入了 Element Plus,
|
因为你的项目中引入了 Element Plus,
|
||||||
保留原生 button 样式会和 Element Plus 组件产生冲突。
|
保留原生 button 样式会和 Element Plus 组件产生冲突。
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* -------------------------------------------------
|
||||||
|
移动端/平板端触控优化
|
||||||
|
移除300ms延迟,防止双击放大,但保留双指缩放
|
||||||
|
-------------------------------------------------
|
||||||
|
*/
|
||||||
|
a,
|
||||||
|
button,
|
||||||
|
input,
|
||||||
|
textarea,
|
||||||
|
select,
|
||||||
|
.el-button,
|
||||||
|
.el-checkbox,
|
||||||
|
.el-switch,
|
||||||
|
.el-table__row,
|
||||||
|
.el-pagination {
|
||||||
|
touch-action: manipulation;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user