From 6438ec6d282122206454110be2e10365d920dcf3 Mon Sep 17 00:00:00 2001 From: dan Date: Thu, 21 Nov 2024 12:10:16 +0000 Subject: [PATCH] Disable vertical scrollbars on Android only (#6586) --- src/view/com/util/List.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/view/com/util/List.tsx b/src/view/com/util/List.tsx index 4ee4d7d0b3..fa93ec5e6d 100644 --- a/src/view/com/util/List.tsx +++ b/src/view/com/util/List.tsx @@ -7,7 +7,7 @@ import {useAnimatedScrollHandler} from '#/lib/hooks/useAnimatedScrollHandler_FIX import {useDedupe} from '#/lib/hooks/useDedupe' import {useScrollHandlers} from '#/lib/ScrollContext' import {addStyle} from '#/lib/styles' -import {isIOS} from '#/platform/detection' +import {isAndroid, isIOS} from '#/platform/detection' import {useLightbox} from '#/state/lightbox' import {useTheme} from '#/alf' import {FlatList_INTERNAL} from './Views' @@ -149,6 +149,7 @@ function ListImpl( scrollEventThrottle={1} onViewableItemsChanged={onViewableItemsChanged} viewabilityConfig={viewabilityConfig} + showsVerticalScrollIndicator={!isAndroid} style={style} ref={ref} />