Add scrollBehavior for navigation scroll handling
This commit is contained in:
parent
5fe5fe2e30
commit
48de36ec1e
|
|
@ -12,8 +12,13 @@ export default defineNuxtConfig({
|
||||||
domains: ['unboundedpress.org']
|
domains: ['unboundedpress.org']
|
||||||
},
|
},
|
||||||
app: {
|
app: {
|
||||||
//baseURL: "/dev/",
|
|
||||||
pageTransition: { name: 'page', mode: 'out-in' },
|
pageTransition: { name: 'page', mode: 'out-in' },
|
||||||
|
scrollBehavior(to, from, savedPosition) {
|
||||||
|
if (savedPosition) {
|
||||||
|
return savedPosition
|
||||||
|
}
|
||||||
|
return { top: 0 }
|
||||||
|
},
|
||||||
head: {
|
head: {
|
||||||
viewport: 'width=device-width'
|
viewport: 'width=device-width'
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue