Skip to content

Commit 4206436

Browse files
authored
Fix scroll issue on Android (#14)
Fixes #13
1 parent 5badcbf commit 4206436

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

‎assets/js/gallerydeluxe/src/index.js‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,6 @@ var debug = 0 ? console.log.bind(console, '[gallery-deluxe]') : function () {};
88

99
let GalleryDeluxe = {
1010
init: async function () {
11-
// Having the gallery zoomable makes for a very confusing UI.
12-
// This seem to be the only way to disable it on Safari on IOS.
13-
document.addEventListener(
14-
'touchmove',
15-
function (event) {
16-
if (event.scale !== 1) {
17-
event.preventDefault();
18-
}
19-
},
20-
{ passive: false }
21-
);
2211
// One gallery per page (for now).
2312
const galleryId = 'gallerydeluxe';
2413
const dataAttributeName = 'data-gd-image-data-url';

0 commit comments

Comments
 (0)