Vanessa 2025-01-04 18:13:36 +08:00
parent 666e89b26c
commit fbb7bdad82

View file

@ -173,6 +173,12 @@ export const handleTouchMove = (event: TouchEvent) => {
) {
return;
}
// 正在编辑时禁止滑动
if(!document.querySelector("#keyboardToolbar").classList.contains("fn__none")) {
return;
}
// 只读状态下未选中内容时时禁止滑动
if (getSelection().rangeCount > 0) {
// 选中后扩选的情况
const range = getSelection().getRangeAt(0);