feat(scroll): use smooth scrollTo instead of direct property assignment

This commit is contained in:
Julien Calixte
2026-04-23 18:07:44 +02:00
parent 63f5d644eb
commit 19495ddf0c

View File

@@ -29,9 +29,9 @@ export const useOverlay = (listen = true) => {
if (!mainApp) return if (!mainApp) return
if (isMobile.value) { if (isMobile.value) {
mainApp.scrollTop = to mainApp.scrollTo({ top: to, behavior: "smooth" })
} else { } else {
mainApp.scrollLeft = to mainApp.scrollTo({ left: to, behavior: "smooth" })
} }
} }