@jsenv/navi 0.29.71 → 0.29.72
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/jsenv_navi.js +8 -1
- package/dist/jsenv_navi.js.map +3 -2
- package/package.json +1 -1
package/dist/jsenv_navi.js
CHANGED
|
@@ -52008,7 +52008,14 @@ const SlideContainer = ({
|
|
|
52008
52008
|
// Where the track ends up, always — the animation below only covers the way
|
|
52009
52009
|
// there, and when it is over this is what holds.
|
|
52010
52010
|
track.style.setProperty("--slide-container-offset", offset);
|
|
52011
|
-
|
|
52011
|
+
// A travel to this very offset is already playing: left to play. Same
|
|
52012
|
+
// courtesy as the stage above — a re-render in the middle of a travel (a
|
|
52013
|
+
// signal read higher up answering) changes nothing here, and setting off
|
|
52014
|
+
// again from the on-screen position would replay what is left over a full
|
|
52015
|
+
// duration (the ask is zero, so ratioOfOneTravel answers 1), slowing the
|
|
52016
|
+
// travel at every re-render.
|
|
52017
|
+
const sameTravelPlaying = travelInFlight && !offsetDragged && offsetTargetBefore === offset;
|
|
52018
|
+
const travels = !sameTravelPlaying && !noTravel && durationMs > 0 && offsetBefore !== undefined && offsetBefore !== offset;
|
|
52012
52019
|
if (travels) {
|
|
52013
52020
|
// The time it takes is the distance it has left to cover: a travel picked
|
|
52014
52021
|
// up a fifth of the way through goes back in a fifth of the time, so what
|