From 9f81bff0202aadfc2546bd74737acba3964aa5a7 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Fri, 23 Jan 2026 19:10:36 -0800 Subject: [PATCH] fix swipe area on grid carousel --- .../components/grid-carousel/grid-carousel-v2.tsx | 1 + .../components/grid-carousel/grid-carousel.module.css | 9 ++------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/renderer/components/grid-carousel/grid-carousel-v2.tsx b/src/renderer/components/grid-carousel/grid-carousel-v2.tsx index fb1f3dc11..c336ed901 100644 --- a/src/renderer/components/grid-carousel/grid-carousel-v2.tsx +++ b/src/renderer/components/grid-carousel/grid-carousel-v2.tsx @@ -265,6 +265,7 @@ function BaseGridCarousel(props: GridCarouselProps) { dragConstraints={{ left: 0, right: 0 }} dragElastic={0} dragMomentum={false} + dragPropagation={false} onDragEnd={handleDragEnd} onDragStart={handleDragStart} > diff --git a/src/renderer/components/grid-carousel/grid-carousel.module.css b/src/renderer/components/grid-carousel/grid-carousel.module.css index b34461d71..d28b25e28 100644 --- a/src/renderer/components/grid-carousel/grid-carousel.module.css +++ b/src/renderer/components/grid-carousel/grid-carousel.module.css @@ -10,8 +10,10 @@ .navigation { display: flex; + flex-shrink: 0; align-items: center; justify-content: space-between; + width: 100%; touch-action: pan-x; cursor: grab; user-select: none; @@ -39,13 +41,6 @@ grid-template-columns: repeat(var(--cards-to-show, 2), minmax(0, 1fr)); gap: var(--theme-spacing-md); overflow: hidden; - touch-action: pan-x; - cursor: grab; - user-select: none; -} - -.grid:active { - cursor: grabbing; } .page-indicator {