Browse Source

:bug: https://github.com/siyuan-note/siyuan/issues/13347

Vanessa 7 months ago
parent
commit
2a9290d0b6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/src/mobile/util/touch.ts

+ 1 - 1
app/src/mobile/util/touch.ts

@@ -66,7 +66,7 @@ export const handleTouchEnd = (event: TouchEvent, app: App) => {
     }
 
     const isXScroll = Math.abs(xDiff) > Math.abs(yDiff);
-    const modelElement = hasClosestByAttribute(target, "id", "model");
+    const modelElement = hasClosestByAttribute(target, "id", "model", true);
     if (modelElement) {
         if (isXScroll && firstDirection === "toRight" && !lastClientX) {
             closeModel();