Skip to content

Commit 7769e45

Browse files
committed
fix: hide scroll-to-top button on non-mobile devices
1 parent 85ac3d7 commit 7769e45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/pages/package/[[org]]/[name].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ const { scrollToTop, isTouchDeviceClient } = useScrollToTop()
324324
325325
const { y: scrollY } = useScroll(window)
326326
const showScrollToTop = computed(
327-
() => isTouchDeviceClient.value && scrollY.value > SCROLL_TO_TOP_THRESHOLD,
327+
() => isMobile.value && isTouchDeviceClient.value && scrollY.value > SCROLL_TO_TOP_THRESHOLD,
328328
)
329329
330330
// Fetch dependency analysis (lazy, client-side)

0 commit comments

Comments
 (0)