Touch: fix media viewer slide
This commit is contained in:
parent
0a51aab7fa
commit
0d7ce72f0d
@ -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) => {
|
this.listLoader.onJump = (item, older) => {
|
||||||
if(older) this.onNextClick(item);
|
if(older) this.onNextClick(item);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user