@johly/vaul-svelte 1.0.0-next.13 → 1.0.0-next.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -167,6 +167,11 @@
|
|
|
167
167
|
animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
+
:global([data-vaul-drawer].vaul-dragging),
|
|
171
|
+
:global([data-vaul-drawer].vaul-dragging *) {
|
|
172
|
+
overflow: hidden !important;
|
|
173
|
+
}
|
|
174
|
+
|
|
170
175
|
:global(
|
|
171
176
|
[data-vaul-drawer][data-vaul-snap-points="false"][data-vaul-drawer-direction="bottom"][data-state="open"]
|
|
172
177
|
) {
|
|
@@ -109,10 +109,6 @@ export function useDrawerContent(opts) {
|
|
|
109
109
|
const delta = { x: xPosition, y: yPosition };
|
|
110
110
|
const isAllowedToSwipe = isDeltaInDirection(delta, ctx.direction.current, swipeStartThreshold);
|
|
111
111
|
if (isAllowedToSwipe) {
|
|
112
|
-
// Prevent scrollable content from scrolling while dragging the drawer
|
|
113
|
-
if (ctx.isDragging) {
|
|
114
|
-
e.preventDefault();
|
|
115
|
-
}
|
|
116
112
|
ctx.onDrag(e);
|
|
117
113
|
// Prevent parent drawer from receiving the drag event
|
|
118
114
|
if (ctx.nested.current) {
|
|
@@ -167,10 +163,6 @@ export function useDrawerContent(opts) {
|
|
|
167
163
|
const delta = { x: xPosition, y: yPosition };
|
|
168
164
|
const isAllowedToSwipe = isDeltaInDirection(delta, ctx.direction.current, swipeStartThreshold);
|
|
169
165
|
if (isAllowedToSwipe) {
|
|
170
|
-
// Prevent scrollable content from scrolling while dragging the drawer
|
|
171
|
-
if (ctx.isDragging) {
|
|
172
|
-
e.preventDefault();
|
|
173
|
-
}
|
|
174
166
|
ctx.onDrag(syntheticEvent);
|
|
175
167
|
// Prevent parent drawer from receiving the touch drag event
|
|
176
168
|
if (ctx.nested.current) {
|