diff --git a/.env b/.env index ebdc4fb9..a9bfab95 100644 --- a/.env +++ b/.env @@ -1,5 +1,5 @@ API_ID=1025907 API_HASH=452b0359b988148995f22ff0f4229750 VERSION=1.1.0 -VERSION_FULL=1.1.0 (97) -BUILD=97 +VERSION_FULL=1.1.0 (98) +BUILD=98 diff --git a/src/components/appMediaViewerBase.ts b/src/components/appMediaViewerBase.ts index f9eafec7..2eaa5d68 100644 --- a/src/components/appMediaViewerBase.ts +++ b/src/components/appMediaViewerBase.ts @@ -310,7 +310,7 @@ export default class AppMediaViewerBase< const percentsY = Math.abs(yDiff) / windowSize.height; if(percentsY > .2 || yDiff > 125) { - this.buttons.close.click(); + this.close(); return true; } @@ -492,7 +492,7 @@ export default class AppMediaViewerBase< }); if(/* target === this.mediaViewerDiv */!mover || (!isZooming && (target.tagName === 'IMG' || target.tagName === 'image'))) { - this.buttons.close.click(); + this.close(); } };