feat: fix image gallery
This commit is contained in:
parent
f52a13171c
commit
d1a235369d
@ -6,7 +6,7 @@
|
|||||||
let progress = [];
|
let progress = [];
|
||||||
let currentIndex = -1;
|
let currentIndex = -1;
|
||||||
const maxZoom = 5;
|
const maxZoom = 5;
|
||||||
// import { swipe } from "svelte-gestures";
|
import { swipe } from "svelte-gestures";
|
||||||
|
|
||||||
const mod = (a: number, b: number) => ((a % b) + b) % b;
|
const mod = (a: number, b: number) => ((a % b) + b) % b;
|
||||||
|
|
||||||
@ -132,9 +132,8 @@
|
|||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
const wrappers = Array.prototype.slice.call(
|
const wrappers = Array.prototype.slice.call(
|
||||||
document.querySelectorAll("[data-image-component]"),
|
document.querySelectorAll("picture > img"),
|
||||||
);
|
);
|
||||||
console.log({ wrappers });
|
|
||||||
|
|
||||||
images = wrappers.map((image, i: number) => {
|
images = wrappers.map((image, i: number) => {
|
||||||
console.log({ image });
|
console.log({ image });
|
||||||
|
Loading…
Reference in New Issue
Block a user