mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-08 00:04:21 +01:00
This commit is contained in:
parent
de9bc5182c
commit
27b9227e50
1 changed files with 2 additions and 1 deletions
|
|
@ -67,7 +67,8 @@ export const handleTouchEnd = (event: TouchEvent, app: App) => {
|
|||
const isXScroll = Math.abs(xDiff) > Math.abs(yDiff);
|
||||
const modelElement = hasClosestByAttribute(target, "id", "model", true);
|
||||
if (modelElement) {
|
||||
if (isXScroll && firstDirection === "toRight" && !lastClientX) {
|
||||
if (isXScroll && firstDirection === "toRight" && !lastClientX &&
|
||||
!hasClosestByClassName(target, "protyle-wysiwyg", true)) {
|
||||
closeModel();
|
||||
}
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue