mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-14 19:18:06 +01:00
🚨
This commit is contained in:
parent
cad51d7554
commit
395dc09b66
5 changed files with 15 additions and 11 deletions
|
|
@ -15,7 +15,7 @@ import {bootSync} from "../dialog/processSystem";
|
|||
import {initMessage, showMessage} from "../dialog/message";
|
||||
import {goBack} from "./util/MobileBackFoward";
|
||||
import {hideKeyboardToolbar, showKeyboardToolbar} from "./util/keyboardToolbar";
|
||||
import {getLocalStorage, isInAndroid, writeText} from "../protyle/util/compatibility";
|
||||
import {getLocalStorage, writeText} from "../protyle/util/compatibility";
|
||||
import {openMobileFileById} from "./editor";
|
||||
import {getSearch} from "../util/functions";
|
||||
import {initRightMenu} from "./menu";
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ export const handleTouchEnd = (event: TouchEvent, app: App) => {
|
|||
if (typeof yDiff === "undefined" && new Date().getTime() - time > 900 && isIPhone()) {
|
||||
// ios 长按行
|
||||
// 文档树
|
||||
const fileItemElement = hasClosestByAttribute(target, "data-type", "navigation-root") || hasClosestByAttribute(target, "data-type", "navigation-file")
|
||||
const fileItemElement = hasClosestByAttribute(target, "data-type", "navigation-root") || hasClosestByAttribute(target, "data-type", "navigation-file");
|
||||
if (fileItemElement) {
|
||||
if (!window.siyuan.config.readonly && fileItemElement.dataset.type === "navigation-root") {
|
||||
initNavigationMenu(app, fileItemElement);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue