Skip to content

Commit

Permalink
fix: loop does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
cristinecula committed Dec 11, 2023
1 parent 91e718b commit 175c437
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/hooks/use-cosmoz-image-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const onImageError = (e) => {
[isZoomed, setIsZoomed] = useState(false),
_onZoomChanged = (ev) => setIsZoomed(ev.detail.value > 1),
{ slide, next, prev, goto, index } = useSlideList(images, {
loop,
initial: images[host.currentImageIndex],
render: (image) =>
render({ image, showZoom, isZoomed, _onZoomChanged }),
Expand Down

0 comments on commit 175c437

Please sign in to comment.