inertiax-core 11.0.37 → 11.0.38

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/index.js CHANGED
@@ -1901,7 +1901,8 @@ var InitialVisit = class {
1901
1901
  page.setUrlHash(window.location.hash, frameId);
1902
1902
  }
1903
1903
  const visitId = uid();
1904
- page.set(page.get(frameId), { preserveScroll: true, preserveState: true, visitId }, frameId).then(() => {
1904
+ const preserveScroll = frameId === "_top";
1905
+ page.set(page.get(frameId), { preserveScroll, preserveState: true, visitId }, frameId).then(() => {
1905
1906
  if (navigationType.isReload()) {
1906
1907
  Scroll.restore(history.getScrollRegions(), frameId);
1907
1908
  } else {