Adding comments for Photos page's filters handling issue
This commit is contained in:
@@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user