fix
This commit is contained in:
40
src/App.vue
Normal file
40
src/App.vue
Normal file
@@ -0,0 +1,40 @@
|
||||
<template>
|
||||
<RouterView />
|
||||
</template>
|
||||
|
||||
<style lang="less">
|
||||
#app{
|
||||
|
||||
font-size: 1.6rem;
|
||||
box-sizing: border-box;
|
||||
overscroll-behavior: none;
|
||||
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
overflow-y: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
|
||||
*{
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
-webkit-touch-callout: none;
|
||||
touch-action: pan-x pan-y; /* 允许单指平移(滚动)但禁用捏合缩放 */
|
||||
}
|
||||
|
||||
// touch-action: none; /* 完全禁用浏览器默认触摸行为 */
|
||||
// -webkit-user-select: none;
|
||||
// -moz-user-select: none;
|
||||
// -ms-user-select: none;
|
||||
// user-select: none;
|
||||
// -webkit-touch-callout: none;
|
||||
@media (min-width: 1024px) {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
position:relative
|
||||
}
|
||||
/* touch-action: none; */
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user