inertiax-core 11.0.25 → 11.0.26
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 +2 -9
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -420,19 +420,12 @@ var History = class {
|
|
|
420
420
|
return pageData instanceof ArrayBuffer ? decryptHistory(pageData) : Promise.resolve(pageData);
|
|
421
421
|
}
|
|
422
422
|
saveScrollPositions(scrollRegions) {
|
|
423
|
-
|
|
424
|
-
const el = document.querySelectorAll("[scroll-region]")[i];
|
|
425
|
-
return el ? el.scrollHeight > el.clientHeight : false;
|
|
426
|
-
});
|
|
427
|
-
if (meaningful.length === 0) {
|
|
428
|
-
return;
|
|
429
|
-
}
|
|
430
|
-
if (isEqual(this.getScrollRegions(), meaningful)) {
|
|
423
|
+
if (isEqual(this.getScrollRegions(), scrollRegions)) {
|
|
431
424
|
return;
|
|
432
425
|
}
|
|
433
426
|
const nextState = {
|
|
434
427
|
...window.history.state,
|
|
435
|
-
scrollRegions
|
|
428
|
+
scrollRegions
|
|
436
429
|
};
|
|
437
430
|
try {
|
|
438
431
|
window.history.replaceState(nextState, "");
|