@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/dev/jsenv_navi.js
CHANGED
|
@@ -78871,6 +78871,13 @@ const useListScrollSync = ({
|
|
|
78871
78871
|
// the selected item for as long as the hold takes to put it back.
|
|
78872
78872
|
return;
|
|
78873
78873
|
}
|
|
78874
|
+
if (getScroller() === document.scrollingElement) {
|
|
78875
|
+
// Where the document opens is the arrival's (see scroll_restoration.js),
|
|
78876
|
+
// and a list asks for a place in it through `defaultScrolled`. A box
|
|
78877
|
+
// around the list (a popup's body) has no other owner, so the selected
|
|
78878
|
+
// item is still centered there.
|
|
78879
|
+
return;
|
|
78880
|
+
}
|
|
78874
78881
|
const items = listItems.itemsSignal.peek();
|
|
78875
78882
|
const firstSelected = items.find(i => {
|
|
78876
78883
|
if (i.selected) {
|