From eeea57828c47ffc2aa3178f048f7133b6e982522 Mon Sep 17 00:00:00 2001 From: AlejandroAkbal <37181533+AlejandroAkbal@users.noreply.github.com> Date: Wed, 17 Jun 2026 08:14:59 +0000 Subject: [PATCH] feat: add click-and-drag horizontal scroll Implements horizontal scrolling by click-and-dragging for the FeaturedTags component and SearchMenu tag lists. - Adds useHorizontalScroll composable that handles mouse events. - Hooks the composable into scrollbar-hide container elements. - Dynamically toggles cursor utility classes (grab/grabbing). --- app/components/pages/home/FeaturedTags.vue | 5 ++- .../posts/navigation/search/SearchMenu.vue | 5 ++- app/composables/useHorizontalScroll.ts | 44 +++++++++++++++++++ 3 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 app/composables/useHorizontalScroll.ts diff --git a/app/components/pages/home/FeaturedTags.vue b/app/components/pages/home/FeaturedTags.vue index 4571abac..5abdc887 100644 --- a/app/components/pages/home/FeaturedTags.vue +++ b/app/components/pages/home/FeaturedTags.vue @@ -66,10 +66,13 @@ if (isExternalHref(path)) return path return localePath(path) } + + const featuredTagsRef = ref(null) + useHorizontalScroll(featuredTagsRef)