Fixed #7021 - Galleria: thumbnails don't work on mobile

pull/7240/head
Johannes Riegler 2025-02-12 12:25:13 +01:00
parent 9e35aa1804
commit c2e830bcb3
1 changed files with 6 additions and 0 deletions

View File

@ -421,6 +421,12 @@ export default {
}
},
changePageOnTouch(e, diff) {
const touchThreshold = 10
if(Math.abs(diff) < touchThreshold) {
// only a click/tap
return;
}
if (diff < 0) {
// left
this.navForward(e);