From 2318b3bf7c23564d928142c36097f7b8cf0ea032 Mon Sep 17 00:00:00 2001 From: morethanwords Date: Tue, 11 Jan 2022 01:28:34 +0400 Subject: [PATCH] Fix cancelling multiselect --- .env | 4 ++-- src/components/chat/selection.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env b/.env index 5ab807e0..67f95c4e 100644 --- a/.env +++ b/.env @@ -1,5 +1,5 @@ API_ID=1025907 API_HASH=452b0359b988148995f22ff0f4229750 VERSION=1.0.1 -VERSION_FULL=1.0.1 (55) -BUILD=55 +VERSION_FULL=1.0.1 (56) +BUILD=56 diff --git a/src/components/chat/selection.ts b/src/components/chat/selection.ts index 8b8108ee..84c2831e 100644 --- a/src/components/chat/selection.ts +++ b/src/components/chat/selection.ts @@ -941,7 +941,7 @@ export default class ChatSelection extends AppSelection { left.style.transform = ''; right.style.transform = ''; } - } else { + } else if(this.selectionLeft) { this.selectionLeft.style.transform = `translateX(-${needTranslateX * 2}px)`; this.selectionRight.style.transform = `translateX(${needTranslateX * 2}px)`; }