@base-framework/base 3.7.73 → 3.7.74
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/base.js +1 -1
- package/dist/base.js.map +3 -3
- package/dist/types/modules/router/router.d.ts +11 -0
- package/package.json +1 -1
|
@@ -314,6 +314,17 @@ export class Router {
|
|
|
314
314
|
* @returns {void}
|
|
315
315
|
*/
|
|
316
316
|
applyScrollIntent(): void;
|
|
317
|
+
/**
|
|
318
|
+
* Re-asserts window scroll position at the top on the next
|
|
319
|
+
* animation frame. Route activation can asynchronously mount or
|
|
320
|
+
* reattach persisted DOM after applyScrollIntent runs, which can
|
|
321
|
+
* leave the viewport at the previous page's offset even though we
|
|
322
|
+
* already called scrollTo(0, 0). Re-asserting after a frame ensures
|
|
323
|
+
* the new page lands at the top.
|
|
324
|
+
*
|
|
325
|
+
* @returns {void}
|
|
326
|
+
*/
|
|
327
|
+
reassertScrollTop(): void;
|
|
317
328
|
/**
|
|
318
329
|
* This will scroll to a target element by CSS selector.
|
|
319
330
|
* For sticky elements, it scrolls to the position where the
|