This commit is contained in:
Vanessa 2023-09-06 17:20:52 +08:00
parent cad51d7554
commit 395dc09b66
5 changed files with 15 additions and 11 deletions

View file

@ -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);