mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-05 16:28:49 +01:00
This commit is contained in:
parent
666e89b26c
commit
fbb7bdad82
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue