Browse Source

Fix media viewer slide again

master
Eduard Kuzmenko 3 years ago
parent
commit
dd8cac0b91
  1. 4
      .env
  2. 3
      src/components/appMediaViewerBase.ts

4
.env

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

3
src/components/appMediaViewerBase.ts

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

Loading…
Cancel
Save