From 28061541d42237ad1899641dfe818e7eeebf93fa Mon Sep 17 00:00:00 2001 From: Ovidiu U Date: Thu, 30 Apr 2026 09:01:11 +0100 Subject: [PATCH] refactor: remove auto-scroll on stations loading Disabled the watch hook that scrolled the viewport when station results were loading. The 40px nudge disrupted user focus and was not needed for usability. --- resources/js/views/Home.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/js/views/Home.vue b/resources/js/views/Home.vue index 0e3228e..63c73f3 100644 --- a/resources/js/views/Home.vue +++ b/resources/js/views/Home.vue @@ -448,12 +448,12 @@ const PRICE_SUFFIX = { monthly: '/mo', annual: '/yr' } const { stations, meta, prediction, loading, error, search, reset } = useStations() const showFullPrediction = computed(() => Boolean(prediction.value) && !prediction.value.tier_locked) -watch(loading, (isLoading) => { - if (!isLoading) return - nextTick(() => { - window.scrollBy({ top: 40, behavior: 'smooth' }) - }) -}) +// watch(loading, (isLoading) => { +// if (!isLoading) return +// nextTick(() => { +// window.scrollBy({ top: 40, behavior: 'smooth' }) +// }) +// }) const searchOrigin = computed(() => { if (meta.value?.lat != null && meta.value?.lng != null) {