feat: fix image gallery
Some checks failed
Deploy to GitHub Pages / build (push) Failing after 7m0s
Deploy to GitHub Pages / deploy (push) Has been skipped

This commit is contained in:
max_richter 2024-04-03 19:43:11 +02:00
parent f52a13171c
commit d1a235369d

View File

@ -6,7 +6,7 @@
let progress = [];
let currentIndex = -1;
const maxZoom = 5;
// import { swipe } from "svelte-gestures";
import { swipe } from "svelte-gestures";
const mod = (a: number, b: number) => ((a % b) + b) % b;
@ -132,9 +132,8 @@
onMount(() => {
const wrappers = Array.prototype.slice.call(
document.querySelectorAll("[data-image-component]"),
document.querySelectorAll("picture > img"),
);
console.log({ wrappers });
images = wrappers.map((image, i: number) => {
console.log({ image });