This repository was archived by the owner on Jan 11, 2023. It is now read-only.
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
Router Scroll state against another DOM Overflow element. #1028
Open
Description
Is your feature request related to a problem? Please describe.
With mobile app development the scroll state may not be defined against the window but against another DOM element that has overflow scroll defined.
Describe the solution you'd like
Could we add the ability to define scroll_history state against another DOM ele outside of window.
<main id="scrollable" style="overflow:scroll-y">....content</main>
so I could define either globally define the scroll-able region or within a property against the goto method.
import { goto } from '@sapper/app';
goto('article', { scroll: false, window: '#scrollable' });
Describe alternatives you've considered
n/a
How important is this feature to you?
Currently I've been using vue and just tied into the router to handle this functionality but trying to do the same with Svelte and came across this issue.
Additional context
n/a