fix: prevent touch scroll in drawer

This commit is contained in:
p-sw 2024-06-03 14:31:27 +09:00
parent c63bdbed90
commit 5947c0b95a

View File

@ -151,7 +151,7 @@ const [drawerContentVariant, resolveDrawerContentVariantProps] = vcn({
right: "right-0 inset-y-0 rounded-r-lg border-l-2", right: "right-0 inset-y-0 rounded-r-lg border-l-2",
}, },
opened: { opened: {
true: "", true: "touch-none",
false: false:
"-[&.top-0]:translate-y-full [&.bottom-0]:translate-y-full [&.left-0]:-translate-x-full [&.right-0]:translate-x-full", "-[&.top-0]:translate-y-full [&.bottom-0]:translate-y-full [&.left-0]:-translate-x-full [&.right-0]:translate-x-full",
}, },