@jsenv/navi 0.30.16 → 0.30.17
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
CHANGED
|
@@ -69412,6 +69412,15 @@ const SlideContainer = ({
|
|
|
69412
69412
|
drawnAreaRef.current = currentArea;
|
|
69413
69413
|
offsetRef.current = "0% 0%";
|
|
69414
69414
|
track.style.setProperty("--slide-container-offset", "0% 0%");
|
|
69415
|
+
// The scroll range counts the track's translate, and Chrome drops it when a
|
|
69416
|
+
// translate change lands in the same update as a layout elsewhere in the page
|
|
69417
|
+
// (a tab indicator following the travel): the range keeps a mid-travel value
|
|
69418
|
+
// until the box is laid out again, clamping the write below and any swipe.
|
|
69419
|
+
// Chrome's alone (Firefox and WebKit are right): laying the track out fixes it.
|
|
69420
|
+
track.style.minWidth = "1px";
|
|
69421
|
+
// eslint-disable-next-line no-void -- a read for its side effect: the layout
|
|
69422
|
+
void track.offsetWidth;
|
|
69423
|
+
track.style.minWidth = "";
|
|
69415
69424
|
containerRef.current.removeAttribute("data-slide-travelling");
|
|
69416
69425
|
containerRef.current.removeAttribute("data-slide-row-taken");
|
|
69417
69426
|
sendRowToRest(currentElement);
|