Skip to content

Commit

Permalink
fix: carousel next and previous button touch-action (#654)
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte authored Jan 15, 2024
1 parent ec26dab commit 880eb3d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

1 comment on commit 880eb3d

@vercel
Copy link

@vercel vercel bot commented on 880eb3d Jan 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.