Adding comments for Photos page's filters handling issue

This commit is contained in:
2021-11-21 13:40:52 +01:00
parent 68236bf39e
commit 1a48d408ab
2 changed files with 15 additions and 5 deletions

View File

@@ -23,7 +23,7 @@
/**
* On page change
*/
navigating.subscribe((store: any) => {
navigating.subscribe((store: any) => {
if (store) {
$pageLoading = true
@@ -35,8 +35,12 @@
// Scroll back to top between page transitions
setTimeout(() => {
// scrollToTop()
window.scrollTo(0,0)
}, DURATION.PAGE_OUT)
// Disable scroll when changing filters on /photos?
if (!$page.query.get('country')) {
window.scrollTo(0,0)
}
}, DURATION.PAGE_OUT * 1.5)
}
})