From ffba99a2292eb51ef93a2c3f67fd873f2de83fd2 Mon Sep 17 00:00:00 2001 From: p-sw Date: Sat, 22 Jun 2024 07:41:06 +0900 Subject: [PATCH] fix: remove touch-none to support touch scrolling in mobile devices --- packages/react/components/Drawer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/components/Drawer.tsx b/packages/react/components/Drawer.tsx index 054d32b..77d4e0c 100644 --- a/packages/react/components/Drawer.tsx +++ b/packages/react/components/Drawer.tsx @@ -155,7 +155,7 @@ const [drawerContentVariant, resolveDrawerContentVariantProps] = vcn({ right: "right-0 inset-y-0 h-screen rounded-r-lg border-l-2", }, opened: { - true: "touch-none", + true: "", false: "[&.top-0]:-translate-y-full [&.bottom-0]:translate-y-full [&.left-0]:-translate-x-full [&.right-0]:translate-x-full", },