An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/14789
Vanessa40567de9fd07
diff --git a/app/src/mobile/util/keyboardToolbar.ts b/app/src/mobile/util/keyboardToolbar.tsindex 26b97672a0..5424d0d102 100644--- a/app/src/mobile/util/keyboardToolbar.ts+++ b/app/src/mobile/util/keyboardToolbar.ts@@ -473,16 +473,6 @@ export const activeBlur = () => {export const initKeyboardToolbar = () => {let preventRender = false;document.addEventListener("selectionchange", () => {- if (isInAndroid()) {- const range = document.getSelection().getRangeAt(0);- const editor = getCurrentEditor();- if (range.toString() && editor.protyle.wysiwyg.element.contains(range.startContainer) &&- range.getBoundingClientRect().top < editor.protyle.contentElement.getBoundingClientRect().top) {- window.siyuan.mobile.androidLastRange = range.cloneRange();- } else {- window.siyuan.mobile.androidLastRange = null;- }- }if (!preventRender) {renderKeyboardToolbar();}diff --git a/app/src/mobile/util/touch.ts b/app/src/mobile/util/touch.tsindex 92b6585250..fe5c81f20c 100644--- a/app/src/mobile/util/touch.ts+++ b/app/src/mobile/util/touch.ts@@ -29,15 +29,6 @@ const popSide = (render = true) => {};export const handleTouchEnd = (event: TouchEvent, app: App) => {- if (isInAndroid() && window.siyuan.mobile.androidLastRange && getSelection().rangeCount>0) {- const range = getSelection().getRangeAt(0);- if (range.toString() && range.startContainer === window.siyuan.mobile.androidLastRange.startContainer) {- range.setStart(window.siyuan.mobile.androidLastRange.startContainer, window.siyuan.mobile.androidLastRange.startOffset);- focusByRange(range);- const editor = getCurrentEditor();- editor.protyle.toolbar.range = range;- }- }if (isIPhone() && globalTouchEnd(event, yDiff, time, app)) {event.stopImmediatePropagation();event.preventDefault();