This feature is experimental. Please share your experiences so we know what to keep or change.
Saves scroll positions for later restoration.
The scroll positions will be associated with the current URL.
They can later be restored by calling up.viewport.restoreScroll()
at the same URL, or by following a link with an [up-scroll="restore"]
attribute.
Unpoly automatically saves scroll positions before navigating.
The viewports for which to save scroll positions.
Defaults to all viewports within the given layer.
The URL for which to save scroll positions.
If omitted, the given layer's location is used.
The layer for which to save scroll positions.
If omitted, positions for the current layer will be saved.