mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-06-06 14:23:59 +02:00
prevent mobile zoom, fix bug with scroll to hash, move zoom control
This commit is contained in:
@@ -4,7 +4,7 @@ import HomeView from '../views/HomeView.vue'
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
scrollBehavior(to, from, savedPosition) {
|
||||
if (to.hash) {
|
||||
if (to.hash && !to.hash.startsWith('#map')) {
|
||||
return {
|
||||
el: to.hash,
|
||||
behavior: 'smooth',
|
||||
|
||||
Reference in New Issue
Block a user