diff --git a/frontend/src/components/gallery/PhotoLightbox.tsx b/frontend/src/components/gallery/PhotoLightbox.tsx index 56d62400..77735202 100644 --- a/frontend/src/components/gallery/PhotoLightbox.tsx +++ b/frontend/src/components/gallery/PhotoLightbox.tsx @@ -407,13 +407,6 @@ export const PhotoLightbox: React.FC = ({ setIsDragging(false); }; - const handleImageClick = (e: React.MouseEvent) => { - // Only close if clicking the background, not the image - if (e.target === e.currentTarget) { - onClose(); - } - }; - // Touch event handlers: pinch-to-zoom (2 fingers) + single-finger // carousel-style swipe nav. Swipe is suppressed while zoomed in so the // user can pan instead. The carousel is also disabled mid-animation. @@ -860,7 +853,6 @@ export const PhotoLightbox: React.FC = ({ key={slideKey(photo, slot)} className="h-full flex items-center justify-center" style={{ flex: '0 0 33.3333%' }} - onClick={handleImageClick} > = ({