Browse Source

Touch: fix media viewer slide

master
Eduard Kuzmenko 3 years ago
parent
commit
0d7ce72f0d
  1. 4
      src/components/appMediaViewerBase.ts

4
src/components/appMediaViewerBase.ts

@ -276,7 +276,9 @@ export default class AppMediaViewerBase< @@ -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);

Loading…
Cancel
Save