fix swipe area on grid carousel

This commit is contained in:
jeffvli
2026-01-23 19:10:36 -08:00
parent b45594515e
commit 9f81bff020
2 changed files with 3 additions and 7 deletions
@@ -265,6 +265,7 @@ function BaseGridCarousel(props: GridCarouselProps) {
dragConstraints={{ left: 0, right: 0 }}
dragElastic={0}
dragMomentum={false}
dragPropagation={false}
onDragEnd={handleDragEnd}
onDragStart={handleDragStart}
>
@@ -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 {