@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.
@@ -71020,6 +71020,15 @@ const SlideContainer = ({
71020
71020
  drawnAreaRef.current = currentArea;
71021
71021
  offsetRef.current = "0% 0%";
71022
71022
  track.style.setProperty("--slide-container-offset", "0% 0%");
71023
+ // The scroll range counts the track's translate, and Chrome drops it when a
71024
+ // translate change lands in the same update as a layout elsewhere in the page
71025
+ // (a tab indicator following the travel): the range keeps a mid-travel value
71026
+ // until the box is laid out again, clamping the write below and any swipe.
71027
+ // Chrome's alone (Firefox and WebKit are right): laying the track out fixes it.
71028
+ track.style.minWidth = "1px";
71029
+ // eslint-disable-next-line no-void -- a read for its side effect: the layout
71030
+ void track.offsetWidth;
71031
+ track.style.minWidth = "";
71023
71032
  containerRef.current.removeAttribute("data-slide-travelling");
71024
71033
  containerRef.current.removeAttribute("data-slide-row-taken");
71025
71034
  sendRowToRest(currentElement);