@jsenv/navi 0.29.468 → 0.29.469
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
|
@@ -77400,6 +77400,13 @@ const useListScrollSync = ({
|
|
|
77400
77400
|
// the selected item for as long as the hold takes to put it back.
|
|
77401
77401
|
return;
|
|
77402
77402
|
}
|
|
77403
|
+
if (getScroller() === document.scrollingElement) {
|
|
77404
|
+
// Where the document opens is the arrival's (see scroll_restoration.js),
|
|
77405
|
+
// and a list asks for a place in it through `defaultScrolled`. A box
|
|
77406
|
+
// around the list (a popup's body) has no other owner, so the selected
|
|
77407
|
+
// item is still centered there.
|
|
77408
|
+
return;
|
|
77409
|
+
}
|
|
77403
77410
|
const items = listItems.itemsSignal.peek();
|
|
77404
77411
|
const firstSelected = items.find(i => {
|
|
77405
77412
|
if (i.selected) {
|