fix: add touch-none in drawerOverlay to prevent outside scrolling

This commit is contained in:
p-sw 2024-06-22 08:00:10 +09:00
parent 3b88ad4e51
commit 5debb80330

View File

@ -79,7 +79,7 @@ const [drawerOverlayVariant, resolveDrawerOverlayVariantProps] = vcn({
base: "fixed inset-0 transition-[backdrop-filter] duration-75",
variants: {
opened: {
true: "pointer-events-auto select-auto",
true: "pointer-events-auto select-auto touch-none", // touch-none to prevent outside scrolling
false: "pointer-events-none select-none",
},
},