@jsenv/navi 0.29.501 → 0.29.502
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.
package/dist/dev/jsenv_navi.js
CHANGED
|
@@ -25671,6 +25671,10 @@ const DROP_CONTAINER_ATTRIBUTE = "data-drop-container";
|
|
|
25671
25671
|
// every outcome — a list runs one way, and something being put somewhere goes
|
|
25672
25672
|
// wherever it is put.
|
|
25673
25673
|
const AXIS_ATTRIBUTE = "data-drag-axis";
|
|
25674
|
+
// Which of those axes a press takes it by, when not all of them: a card pulled
|
|
25675
|
+
// up out of a strip that scrolls sideways, then carried both ways. Said nothing,
|
|
25676
|
+
// it is every axis the drag walks.
|
|
25677
|
+
const INTENT_AXIS_ATTRIBUTE = "data-drag-intent-axis";
|
|
25674
25678
|
// How the items of a reordered list are laid out: "column", "row", or "wrap" for
|
|
25675
25679
|
// side by side over several lines. Said nothing, it is read from where the
|
|
25676
25680
|
// items stand.
|
|
@@ -25822,6 +25826,10 @@ defineInteractionDetector({
|
|
|
25822
25826
|
? "xy"
|
|
25823
25827
|
: "y"
|
|
25824
25828
|
: "xy");
|
|
25829
|
+
const intentAxis =
|
|
25830
|
+
element
|
|
25831
|
+
.closest(`[${INTENT_AXIS_ATTRIBUTE}]`)
|
|
25832
|
+
?.getAttribute(INTENT_AXIS_ATTRIBUTE) || axes;
|
|
25825
25833
|
// Where the places are, read at setup for the same reason as the axes: they
|
|
25826
25834
|
// are what the gesture is about, and it is what holds the two sides of it
|
|
25827
25835
|
// that says them.
|
|
@@ -25841,11 +25849,13 @@ defineInteractionDetector({
|
|
|
25841
25849
|
if (canReorder) {
|
|
25842
25850
|
element.setAttribute(REORDERABLE_ATTRIBUTE, "");
|
|
25843
25851
|
}
|
|
25844
|
-
// What @jsenv/dom puts on a drag source: the axes
|
|
25845
|
-
// whoever else answers this press (a sheet pushed
|
|
25846
|
-
//
|
|
25847
|
-
//
|
|
25848
|
-
|
|
25852
|
+
// What @jsenv/dom puts on a drag source: the axes a press takes it by,
|
|
25853
|
+
// written in the DOM for whoever else answers this press (a sheet pushed
|
|
25854
|
+
// down to close it, a row of slides, a finger given back to the scroll), no
|
|
25855
|
+
// iOS callout, the touch left to the scroll until the press becomes a grab,
|
|
25856
|
+
// and the listener that lets the grab take it back. Once taken, the copy
|
|
25857
|
+
// walks `axes`.
|
|
25858
|
+
const unmarkDragSource = markDragSource(element, intentAxis);
|
|
25849
25859
|
|
|
25850
25860
|
// What a release can mean, which is not all of what was declared: "grab",
|
|
25851
25861
|
// "release" and "refuse" are moments, not outcomes, and "moving" is the carry
|