Touch: fix media viewer slide

This commit is contained in:
Eduard Kuzmenko 2022-02-11 19:05:05 +04:00
parent 0a51aab7fa
commit 0d7ce72f0d

View File

@ -276,7 +276,9 @@ export default class AppMediaViewerBase<
}
});
attachClickEvent(this.wholeDiv, this.onClick);
// ! cannot use the function because it'll cancel slide event on touch devices
// attachClickEvent(this.wholeDiv, this.onClick);
this.wholeDiv.addEventListener('click', this.onClick);
this.listLoader.onJump = (item, older) => {
if(older) this.onNextClick(item);