Skip to content

Commit

Permalink
Fix scroll issue on Android (#14)
Browse files Browse the repository at this point in the history
Fixes #13
  • Loading branch information
bep committed Feb 6, 2023
1 parent 5badcbf commit 4206436
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions assets/js/gallerydeluxe/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,6 @@ var debug = 0 ? console.log.bind(console, '[gallery-deluxe]') : function () {};

let GalleryDeluxe = {
init: async function () {
// Having the gallery zoomable makes for a very confusing UI.
// This seem to be the only way to disable it on Safari on IOS.
document.addEventListener(
'touchmove',
function (event) {
if (event.scale !== 1) {
event.preventDefault();
}
},
{ passive: false }
);
// One gallery per page (for now).
const galleryId = 'gallerydeluxe';
const dataAttributeName = 'data-gd-image-data-url';
Expand Down

0 comments on commit 4206436

Please sign in to comment.