浏览代码

:art: https://github.com/siyuan-note/siyuan/issues/11372

Vanessa 1 年之前
父节点
当前提交
e8eef426a4
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 1 1
      app/src/mobile/dock/MobileOutline.ts
  2. 4 0
      app/src/protyle/wysiwyg/index.ts

+ 1 - 1
app/src/mobile/dock/MobileOutline.ts

@@ -133,7 +133,7 @@ export class MobileOutline {
         }
         }
         if (currentElement) {
         if (currentElement) {
             currentElement.classList.add("b3-list-item--focus");
             currentElement.classList.add("b3-list-item--focus");
-            this.element.scrollTop = currentElement.offsetTop - this.element.clientHeight / 2 - 30;
+            this.tree.element.scrollTop = currentElement.offsetTop - this.element.clientHeight / 2 - 30;
         }
         }
     }
     }
 
 

+ 4 - 0
app/src/protyle/wysiwyg/index.ts

@@ -229,6 +229,10 @@ export class WYSIWYG {
                 }
                 }
             });
             });
         }
         }
+        /// #else
+        if (protyle.disabled) {
+            protyle.toolbar.range = getEditorRange(nodeElement);
+        }
         /// #endif
         /// #endif
     }
     }