mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
fix swipe area on grid carousel
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user