File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const props = defineProps<{
1818}>()
1919
2020const { requestedVersion, orgName } = usePackageRoute ()
21- const { scrollToTop, isTouchDeviceClient } = useScrollToTop ()
21+ const { scrollToTop } = useScrollToTop ()
2222const packageHeaderHeight = usePackageHeaderHeight ()
2323
2424const header = useTemplateRef (' header' )
@@ -61,9 +61,7 @@ onBeforeUnmount(() => {
6161const navExtraOffsetStyle = { ' --package-nav-extra' : ' 0px' }
6262
6363const { y : scrollY } = useScroll (window )
64- const showScrollToTop = computed (
65- () => isTouchDeviceClient .value && scrollY .value > SCROLL_TO_TOP_THRESHOLD ,
66- )
64+ const showScrollToTop = computed (() => scrollY .value > SCROLL_TO_TOP_THRESHOLD )
6765
6866const packageName = computed (() => props .pkg ?.name ?? ' ' )
6967const compactNumberFormatter = useCompactNumberFormatter ()
You can’t perform that action at this time.
0 commit comments