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 modelElement = hasClosestByAttribute(target, "id", "model");
const modelElement = hasClosestByAttribute(target, "id", "model", true);
if (modelElement) {
if (isXScroll && firstDirection === "toRight" && !lastClientX) {
closeModel();