From 880eb3d5d11ebc834bbc931a8f3bc716d9f66ab0 Mon Sep 17 00:00:00 2001 From: Hunter Johnston <64506580+huntabyte@users.noreply.github.com> Date: Mon, 15 Jan 2024 10:47:53 -0700 Subject: [PATCH] fix: carousel next and previous button touch-action (#654) --- .../src/lib/registry/default/ui/carousel/carousel-next.svelte | 2 +- .../lib/registry/default/ui/carousel/carousel-previous.svelte | 2 +- .../src/lib/registry/new-york/ui/carousel/carousel-next.svelte | 2 +- .../lib/registry/new-york/ui/carousel/carousel-previous.svelte | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/www/src/lib/registry/default/ui/carousel/carousel-next.svelte b/apps/www/src/lib/registry/default/ui/carousel/carousel-next.svelte index d4f3651a1..a6a29c2be 100644 --- a/apps/www/src/lib/registry/default/ui/carousel/carousel-next.svelte +++ b/apps/www/src/lib/registry/default/ui/carousel/carousel-next.svelte @@ -19,7 +19,7 @@ {variant} {size} class={cn( - "absolute h-8 w-8 rounded-full", + "absolute h-8 w-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", diff --git a/apps/www/src/lib/registry/default/ui/carousel/carousel-previous.svelte b/apps/www/src/lib/registry/default/ui/carousel/carousel-previous.svelte index 06cbe4d2e..93698e0c8 100644 --- a/apps/www/src/lib/registry/default/ui/carousel/carousel-previous.svelte +++ b/apps/www/src/lib/registry/default/ui/carousel/carousel-previous.svelte @@ -20,7 +20,7 @@ {variant} {size} class={cn( - "absolute h-8 w-8 rounded-full", + "absolute h-8 w-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", diff --git a/apps/www/src/lib/registry/new-york/ui/carousel/carousel-next.svelte b/apps/www/src/lib/registry/new-york/ui/carousel/carousel-next.svelte index c921c128f..94a30823a 100644 --- a/apps/www/src/lib/registry/new-york/ui/carousel/carousel-next.svelte +++ b/apps/www/src/lib/registry/new-york/ui/carousel/carousel-next.svelte @@ -20,7 +20,7 @@ {variant} {size} class={cn( - "absolute h-8 w-8 rounded-full", + "absolute h-8 w-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", diff --git a/apps/www/src/lib/registry/new-york/ui/carousel/carousel-previous.svelte b/apps/www/src/lib/registry/new-york/ui/carousel/carousel-previous.svelte index f7383c2c8..1a0e72700 100644 --- a/apps/www/src/lib/registry/new-york/ui/carousel/carousel-previous.svelte +++ b/apps/www/src/lib/registry/new-york/ui/carousel/carousel-previous.svelte @@ -20,7 +20,7 @@ {variant} {size} class={cn( - "absolute h-8 w-8 rounded-full", + "absolute h-8 w-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",