Skip to content

Commit

Permalink
use hide_vertical_scroll_indicators
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok committed Apr 9, 2024
1 parent 9d6053a commit 68b60c6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/view/com/util/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function ListImpl<ItemT>(
const contextScrollHandlers = useScrollHandlers()
const pal = usePalette('default')
const showsVerticalScrollIndicator =
useGate('shows_vertical_scroll_indicator') && isWeb
!useGate('hide_vertical_scroll_indicators') && isWeb
function handleScrolledDownChange(didScrollDown: boolean) {
onScrolledDownChange?.(didScrollDown)
}
Expand Down
4 changes: 2 additions & 2 deletions src/view/com/util/Views.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export function CenteredView(props) {
}

export function ScrollView(props) {
const showsVerticalScrollIndicator = useGate(
'shows_vertical_scroll_indicator',
const showsVerticalScrollIndicator = !useGate(
'hide_vertical_scroll_indicators',
)

return (
Expand Down
2 changes: 1 addition & 1 deletion src/view/screens/ModerationBlockedAccounts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function ModerationBlockedAccounts({}: Props) {
const {isTabletOrDesktop} = useWebMediaQueries()
const {screen} = useAnalytics()
const showsVerticalScrollIndicator =
useGate('shows_vertical_scroll_indicator') && isWeb
!useGate('hide_vertical_scroll_indicators') && isWeb

const [isPTRing, setIsPTRing] = React.useState(false)
const {
Expand Down
2 changes: 1 addition & 1 deletion src/view/screens/ModerationMutedAccounts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function ModerationMutedAccounts({}: Props) {
const {isTabletOrDesktop} = useWebMediaQueries()
const {screen} = useAnalytics()
const showsVerticalScrollIndicator =
useGate('shows_vertical_scroll_indicator') && isWeb
!useGate('hide_vertical_scroll_indicators') && isWeb
const [isPTRing, setIsPTRing] = React.useState(false)
const {
data,
Expand Down

0 comments on commit 68b60c6

Please sign in to comment.