mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-16 17:10:53 +08:00
This commit is contained in:
parent
af434451e0
commit
2a9290d0b6
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user