Skip to content

Commit

Permalink
Disable vertical scrollbars on Android only (#6586)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Nov 21, 2024
1 parent 97a4ff1 commit 6438ec6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/view/com/util/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -149,6 +149,7 @@ function ListImpl<ItemT>(
scrollEventThrottle={1}
onViewableItemsChanged={onViewableItemsChanged}
viewabilityConfig={viewabilityConfig}
showsVerticalScrollIndicator={!isAndroid}
style={style}
ref={ref}
/>
Expand Down

0 comments on commit 6438ec6

Please sign in to comment.