修复 修复移动端滚动问题,调整触摸行为以允许垂直滚动

This commit is contained in:
yuantao
2025-11-03 15:56:28 +08:00
parent 7088747dee
commit cb9488ec05
8 changed files with 1293 additions and 1263 deletions

View File

@@ -1999,6 +1999,12 @@ defineExpose({
background-size: 100% calc(var(--editor-font-size, 1rem) * var(--editor-line-height, 1.6)); /* var(--editor-font-size) * var(--editor-line-height) */
background-repeat: repeat-y;
background-position: 0 calc((var(--editor-font-size, 1rem) * var(--editor-line-height, 1.6) - var(--editor-font-size, 1rem)) / 2);
touch-action: pan-y;
-webkit-touch-callout: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-overflow-scrolling: touch;
}
.editor-content::before {