Skip to content

Commit

Permalink
fix: Tapping the carousel previous/next buttons multiple times on iOS…
Browse files Browse the repository at this point in the history
… devices triggers page zoom (#77)
  • Loading branch information
derFBeste authored Apr 22, 2024
1 parent 257a2b2 commit 1408d26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/docs/src/registry/ui/carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ const CarouselPrevious: Component<CarouselButtonProps> = (rawProps) => {
variant={props.variant}
size={props.size}
class={cn(
"absolute size-8 rounded-full",
"absolute size-8 rounded-full touch-manipulation",
orientation === "horizontal"
? "-left-12 top-1/2 -translate-y-1/2"
: "-top-12 left-1/2 -translate-x-1/2 rotate-90",
Expand Down Expand Up @@ -231,7 +231,7 @@ const CarouselNext: Component<CarouselButtonProps> = (rawProps) => {
variant={props.variant}
size={props.size}
class={cn(
"absolute size-8 rounded-full",
"absolute size-8 rounded-full touch-manipulation",
orientation === "horizontal"
? "-right-12 top-1/2 -translate-y-1/2"
: "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
Expand Down

0 comments on commit 1408d26

Please sign in to comment.