mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-10-04 14:36:52 +02:00
prevent mobile zoom, fix bug with scroll to hash, move zoom control
This commit is contained in:
1 parent
ac0ec415a2
commit
64da95d76a
3 files changed
+11
-6
No files matched your search
@@ -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