@jsenv/navi 0.29.330 → 0.29.331
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 +15 -0
- package/dist/dev/jsenv_navi.js.map +3 -3
- package/dist/jsenv_navi.js +15 -0
- package/dist/jsenv_navi.js.map +3 -3
- package/docs/drag_to_travel.md +11 -1
- package/package.json +2 -2
package/dist/dev/jsenv_navi.js
CHANGED
|
@@ -31216,6 +31216,17 @@ const RouteTravel = ({
|
|
|
31216
31216
|
ended: false
|
|
31217
31217
|
};
|
|
31218
31218
|
travelRef.current = travel;
|
|
31219
|
+
// A press landing on a playing travel lands on the document root: the box
|
|
31220
|
+
// is captured by the transition and cannot be pointed at, so neither its
|
|
31221
|
+
// touch-action nor its own touchmove listener is on the touch's path. Left
|
|
31222
|
+
// there, the browser takes the finger's first vertical pixels for a scroll
|
|
31223
|
+
// and cancels the pointer under a travel that was just caught. Refusable
|
|
31224
|
+
// from the root for the length of the travel, the gesture that catches it
|
|
31225
|
+
// refuses every touchmove of that press (it is started from the grab), and
|
|
31226
|
+
// the finger's only answer is the travel it landed on.
|
|
31227
|
+
document.documentElement.addEventListener("touchmove", keepTouchRefusable, {
|
|
31228
|
+
passive: false
|
|
31229
|
+
});
|
|
31219
31230
|
// Whether the document's offset is this row's business at all (see
|
|
31220
31231
|
// pagesScrollTheDocument), asked once and before anything is swapped.
|
|
31221
31232
|
travel.scrollsDocument = pagesScrollTheDocument(elementRef.current);
|
|
@@ -31589,6 +31600,9 @@ const RouteTravel = ({
|
|
|
31589
31600
|
travel.ended = true;
|
|
31590
31601
|
travel.dropHold?.();
|
|
31591
31602
|
travel.dropHold = null;
|
|
31603
|
+
if (travelRef.current === travel) {
|
|
31604
|
+
document.documentElement.removeEventListener("touchmove", keepTouchRefusable);
|
|
31605
|
+
}
|
|
31592
31606
|
// The offset on the scrollport belongs to a page again — the one that
|
|
31593
31607
|
// arrived, or the one put back. A travel that never got as far as saying
|
|
31594
31608
|
// which still has to give the recording back; the gesture's own
|
|
@@ -73263,6 +73277,7 @@ const css$t = /* css */`@layer navi {
|
|
|
73263
73277
|
--picker-padding-y-default: 0;
|
|
73264
73278
|
--picker-border-width: 0px;
|
|
73265
73279
|
--picker-border-color: transparent;
|
|
73280
|
+
--picker-outline-width: 0px;
|
|
73266
73281
|
--picker-border-color-hover: var(--picker-border-color);
|
|
73267
73282
|
--picker-border-color-readonly: var(--picker-border-color);
|
|
73268
73283
|
--picker-border-color-disabled: var(--picker-border-color);
|