AmdtelWebComponents / aljam-web

0 stars 0 forks source link

Fix scrolling #5

Open tripy37 opened 5 years ago

tripy37 commented 5 years ago

Because each page is viewed within the app element, each page is controlled by the same scroll bar. Thus if you scroll to the bottom of one page then change page it will remain at the bottom of the new page. Will either have to reset the scroll on each page change through js or find if this fix has been put forward on the pwa starter kit repo

tripy37 commented 4 years ago

First fix: In src/actions/app.js Within the loadPage function, code can be run each time the page is navigated too. Within the case statement each case statement can run: window.scroll(0,0)