Vanessa 2024-12-05 09:56:49 +08:00
parent af434451e0
commit 2a9290d0b6

View File

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