This commit is contained in:
parent
af434451e0
commit
2a9290d0b6
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue