From f843c189d20a014c1bb3d100d354374c186527be Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 9 Sep 2026 19:51:36 +0300 Subject: [PATCH] if needed --- src/composables/useScrollPosition.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/composables/useScrollPosition.js b/src/composables/useScrollPosition.js index f1d6356d9..6a5e43b18 100644 --- a/src/composables/useScrollPosition.js +++ b/src/composables/useScrollPosition.js @@ -26,7 +26,7 @@ export function useScrollPosition() { const scrollIntoView = async (element, options) => { inProgress.value = true - await element.scrollIntoView(options) + await element.scrollIntoViewIfNeeded(options) inProgress.value = false }