@a-type/ui 6.1.22 → 6.1.24
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.
|
@@ -76,12 +76,20 @@
|
|
|
76
76
|
min-height: 0;
|
|
77
77
|
/*
|
|
78
78
|
This padding is what defines the actual height of the drawer.
|
|
79
|
+
|
|
80
|
+
Movement is added to expand the bottom padding while swiping upward using
|
|
81
|
+
snap points. Movement contribution is capped at 0 (only negative is included)
|
|
82
|
+
to make sure a downward swipe to close a drawer is respected (downward swipe
|
|
83
|
+
means positive movement value; if we added this to padding in real time, we
|
|
84
|
+
would be increasing the height of the drawer exactly commensurate to the
|
|
85
|
+
attempted downward movement, making it "stuck" - if this behavior resurfaces,
|
|
86
|
+
this is the line to inspect...
|
|
79
87
|
*/
|
|
80
88
|
padding-bottom: max(
|
|
81
89
|
0px,
|
|
82
90
|
calc(
|
|
83
|
-
var(--drawer-snap-point-offset, 0px) +
|
|
84
|
-
var(--top-gap)
|
|
91
|
+
var(--drawer-snap-point-offset, 0px) +
|
|
92
|
+
min(0px, var(--drawer-swipe-movement-y)) - var(--top-gap)
|
|
85
93
|
)
|
|
86
94
|
);
|
|
87
95
|
|
package/package.json
CHANGED
|
@@ -76,12 +76,20 @@
|
|
|
76
76
|
min-height: 0;
|
|
77
77
|
/*
|
|
78
78
|
This padding is what defines the actual height of the drawer.
|
|
79
|
+
|
|
80
|
+
Movement is added to expand the bottom padding while swiping upward using
|
|
81
|
+
snap points. Movement contribution is capped at 0 (only negative is included)
|
|
82
|
+
to make sure a downward swipe to close a drawer is respected (downward swipe
|
|
83
|
+
means positive movement value; if we added this to padding in real time, we
|
|
84
|
+
would be increasing the height of the drawer exactly commensurate to the
|
|
85
|
+
attempted downward movement, making it "stuck" - if this behavior resurfaces,
|
|
86
|
+
this is the line to inspect...
|
|
79
87
|
*/
|
|
80
88
|
padding-bottom: max(
|
|
81
89
|
0px,
|
|
82
90
|
calc(
|
|
83
|
-
var(--drawer-snap-point-offset, 0px) +
|
|
84
|
-
var(--top-gap)
|
|
91
|
+
var(--drawer-snap-point-offset, 0px) +
|
|
92
|
+
min(0px, var(--drawer-swipe-movement-y)) - var(--top-gap)
|
|
85
93
|
)
|
|
86
94
|
);
|
|
87
95
|
|