diff --git a/packages/polymech/src/components/MasonryGallery.astro b/packages/polymech/src/components/MasonryGallery.astro index 4fa1ea4..bd65a77 100644 --- a/packages/polymech/src/components/MasonryGallery.astro +++ b/packages/polymech/src/components/MasonryGallery.astro @@ -229,37 +229,7 @@ if (groupingFunction) { --- -
= this.minSwipeDistance) { - if (swipeDistance > 0 && this.currentIndex > 0) { - this.currentIndex--; - } else if (swipeDistance < 0 && this.currentIndex < this.total - 1) { - this.currentIndex++; - } - } - this.isSwiping = false; - } - }`} - @keydown.escape.window="open = false" - @keydown.window="if(open){ if($event.key === 'ArrowRight' && currentIndex < total - 1){ currentIndex++; } else if($event.key === 'ArrowLeft' && currentIndex > 0){ currentIndex--; } }" - class="masonry-gallery" -> +