Fix media viewer slide again

This commit is contained in:
Eduard Kuzmenko 2022-02-11 19:15:49 +04:00
parent a9413d17c2
commit dd8cac0b91
2 changed files with 4 additions and 3 deletions

4
.env
View File

@ -1,5 +1,5 @@
API_ID=1025907
API_HASH=452b0359b988148995f22ff0f4229750
VERSION=1.1.0
VERSION_FULL=1.1.0 (96)
BUILD=96
VERSION_FULL=1.1.0 (97)
BUILD=97

View File

@ -261,7 +261,8 @@ export default class AppMediaViewerBase<
});
([[-1, this.buttons.prev], [1, this.buttons.next]] as [number, HTMLElement][]).forEach(([moveLength, button]) => {
attachClickEvent(button, (e) => {
// attachClickEvent(button, (e) => {
button.addEventListener('click', (e) => {
cancelEvent(e);
if(this.setMoverPromise) return;